MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND ll.listing_id = l.listing_id
AND l.active_flag = 1
AND ll.act...' at line 5
When executing:
SELECT ll.list_id,ll.seq,l.*
FROM listings l
,list_listings ll
WHERE ll.list_id =
AND ll.listing_id = l.listing_id
AND l.active_flag = 1
AND ll.active_flag = 1
ORDER BY seq