select r.*, n.label as neighborhood_label, c.label as cuisine_label from citypaper_restaurants.cp_restaurants as r left join citypaper_restaurants.cp_neighborhoods as n on n.id = r.neighborhoods_id left join citypaper_restaurants.cp_cuisines as c on c.id = r.cuisines_id where r.id = index.php [nativecode=1054 ** Unknown column 'index.php' in 'where clause']