I am trying to take JOIN
from two tables and the resultant table to JOIN with third table but its throwing error, let me know what I am doing wrong here -
SELECT e.id as e_id, e.name as e_name, e.artist_id as e_artist_id, e.event_date as e_date,
v.id as v_id, v.name as v_name, v.address as v_address, v.latitude as v_latitude, v.longitude as v_longitude
FROM events e
LEFT JOIN venues v
ON e.venue_id = v.id WHERE v.id = 12
LEFT JOIN artists a
ON e.artist_id = a.id