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 'and enable = 1 order by ordering asc' at line 1

select SQL_CALC_FOUND_ROWS * from product_image where product_id = and enable = 1 order by ordering asc

Filename: models/Product_image_model.php

Line Number: 26