I can not figure out what is wrong with this syntax:
$categorynameresult='SELECT DISTINCT cat_name FROM categories WHERE company = '$companyName' AND cid IN(\''.$categoryids.'\')';
I keep getting this error message:
Parse error: syntax error, unexpected T_VARIABLE in ...
I know that $companyName and $categoryids have the values that I need, but there seems to be something wrong with the syntax Could sombody please help me? Thanks