A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND type=3 order by sequence_id asc,imagesid asc' at line 1

SELECT * FROM tbl_listing_images WHERE listingid= AND type=3 order by sequence_id asc,imagesid asc

Filename: /home/vktji915zx7j/public_html/models/site_page_data.php

Line Number: 19