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 FROM_UNIXTIME(timestamp, '%d%M%Y') = '01January1970' order by summary_id des' at line 1

select * from doctor_summary where user_id = and FROM_UNIXTIME(timestamp, '%d%M%Y') = '01January1970' order by summary_id desc

Filename: /home/unisonpharma/public_html/reporting/api/controllers/services_v2.php

Line Number: 18416