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 r.task_type<>8 and t.id=r.task_id and u.id= order by r.id desc limit 0, 2' at line 1

select r.*, t.id as taskid, t.title, t.reward, u.id as usrid, u.uid, u.storenick,u.name,u.ref_id, u.alipay_id from report r, task t, usr u where r.reporter_id= and r.task_type<>8 and t.id=r.task_id and u.id= order by r.id desc limit 0, 20

Filename: /data/www/html/weidiaocha.cn/models/md.php

Line Number: 1889