A Database Error Occurred

Error Number: 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 'rows FROM `product_collection_mapping` LEFT JOIN `product_mst` ON `product_colle' at line 1

SELECT count(*) as rows FROM `product_collection_mapping` LEFT JOIN `product_mst` ON `product_collection_mapping`.`product_id` = `product_mst`.`product_id` LEFT JOIN `collection_mst` ON `product_collection_mapping`.`collection_id` = `collection_mst`.`collection_id` WHERE `product_collection_mapping`.`collection_id` = '2' AND `product_mst`.`is_updated` =0 AND `collection_mst`.`is_updated` =0

Filename: models/Product_model.php

Line Number: 384