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 is_deleted=0 and is_approved=0 order by ads_postdate desc limit 0,25' at line 1

select * from tbl_ads where user_id= and is_deleted=0 and is_approved=0 order by ads_postdate desc limit 0,25

Filename: controllers/Home.php

Line Number: 3315