gigs.id as gig_id, gigs.gig_url, gigs.cat_parent as gig_parent,
FROM gigs as gigs
LEFT JOIN categories as categories
ON gigs.cat_parent = categories.id
WHERE gigs.id =
AND gigs.gig_url LIKE BINARY 'Keep-It-Cash.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 'Keep-It-Cash.htm'
AND categories.page_url LIKE ' at line 8