1.0 gig_categories.php
SELECT gigs.id as gig_id, gigs.gig_url, gigs.cat_parent as gig_parent, categories.id, categories.page_url FROM gigs as gigs LEFT JOIN categories as categories ON gigs.cat_parent = categories.id WHERE gigs.id = AND gigs.gig_url LIKE BINARY 'From-The-Jam.htm' AND categories.page_url LIKE BINARY 'Gig-guide.htm' AND gigs.show_on_site = 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND gigs.gig_url LIKE BINARY 'From-The-Jam.htm' AND categories.page_url LIKE ' at line 8