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 (type=1 OR type=3) ORDER BY sequence_id ASC' at line 1

SELECT * FROM tbl_listing_images WHERE listingid= AND (type=1 OR type=3) ORDER BY sequence_id ASC

Filename: /home/content/50/10300950/html/models/listings.php

Line Number: 405