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 p.`products_price` <= AND (( pd.products_name LIKE '%electronic%' ' at line 10
in:
[select count(distinct p.products_id) as total FROM (products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c ) LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id and p.`products_price` >= and p.`products_price` <= AND (( pd.products_name LIKE '%electronic%' OR p.products_model LIKE '%electronic%' OR m.manufacturers_name LIKE '%electronic%' OR (mtpd.metatags_keywords LIKE '%electronic%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%electronic%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%components%' OR p.products_model LIKE '%components%' OR m.manufacturers_name LIKE '%components%' OR (mtpd.metatags_keywords LIKE '%components%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%components%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%distributor%' OR p.products_model LIKE '%distributor%' OR m.manufacturers_name LIKE '%distributor%' OR (mtpd.metatags_keywords LIKE '%distributor%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%distributor%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%with%' OR p.products_model LIKE '%with%' OR m.manufacturers_name LIKE '%with%' OR (mtpd.metatags_keywords LIKE '%with%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%with%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%huge%' OR p.products_model LIKE '%huge%' OR m.manufacturers_name LIKE '%huge%' OR (mtpd.metatags_keywords LIKE '%huge%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%huge%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%selection%' OR p.products_model LIKE '%selection%' OR m.manufacturers_name LIKE '%selection%' OR (mtpd.metatags_keywords LIKE '%selection%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%selection%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%in%' OR p.products_model LIKE '%in%' OR m.manufacturers_name LIKE '%in%' OR (mtpd.metatags_keywords LIKE '%in%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%in%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%stock%' OR p.products_model LIKE '%stock%' OR m.manufacturers_name LIKE '%stock%' OR (mtpd.metatags_keywords LIKE '%stock%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%stock%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%cheap%' OR p.products_model LIKE '%cheap%' OR m.manufacturers_name LIKE '%cheap%' OR (mtpd.metatags_keywords LIKE '%cheap%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%cheap%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%price.%' OR p.products_model LIKE '%price.%' OR m.manufacturers_name LIKE '%price.%' OR (mtpd.metatags_keywords LIKE '%price.%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%price.%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%new%' OR p.products_model LIKE '%new%' OR m.manufacturers_name LIKE '%new%' OR (mtpd.metatags_keywords LIKE '%new%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%new%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%electronic%' OR p.products_model LIKE '%electronic%' OR m.manufacturers_name LIKE '%electronic%' OR (mtpd.metatags_keywords LIKE '%electronic%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%electronic%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%parts%' OR p.products_model LIKE '%parts%' OR m.manufacturers_name LIKE '%parts%' OR (mtpd.metatags_keywords LIKE '%parts%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%parts%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%added%' OR p.products_model LIKE '%added%' OR m.manufacturers_name LIKE '%added%' OR (mtpd.metatags_keywords LIKE '%added%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%added%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%daily.%' OR p.products_model LIKE '%daily.%' OR m.manufacturers_name LIKE '%daily.%' OR (mtpd.metatags_keywords LIKE '%daily.%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%daily.%' AND mtpd.metatags_description !='')) ))]