Query Failed 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 'where rev_spec_table='' and rev_spec_table=stype_table_name and stype_cat_id=cat' at line 1 select cat_path,cat_id,pg_id,cat_name,id,stype_id,cat_titlebartext,cat_zone,cat_parent_id,lowprice from category,spec_type,revid, where rev_spec_table='' and rev_spec_table=stype_table_name and stype_cat_id=cat_id and rev_id= and reviewedid=