array(1) { [0]=> array(6) { ["file"]=> string(29) "/home/rvi/htdocs/category.php" ["line"]=> int(46) ["function"]=> string(7) "doquery" ["class"]=> string(7) "dbclass" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &string(191) "select distinct cat_name,cat_path,cat_image from category,spec_type where stype_cat_id=cat_id and cat_parent_id= and stype_active=1 and stype_rating_table=0 and cat_active=1 order by cat_name" } } } Query Failed
1064: 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 stype_active=1 and stype_rating_table=0 and cat_active=1 order by cat_name' at line 1