I can't seem to get this working:
The where clause isn't working and it's throwing an error: Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource
Any ideas on how I can fix this?
Thanks
Code:
$query = "SELECT c.c_id,c.c_name, COUNT( p.recipe_title ) as theCount FROM new_recipe_cat AS c LEFT OUTER JOIN new_recipes AS p ON c.c_id = p.c_id WHERE (c_id==11 && c_id==12 && c_id==13 && c_id==14 && c_id==15 && c_id==16 && c_id==17 && c_id==22 && c_id==23) AND r_allow=1 GROUP BY c.c_name";
Any ideas on how I can fix this?
Thanks
Comment