Discuz! info: MySQL Query Error

Time: 2014-9-23 10:17am
Script: /doc.php

SQL: SELECT h.*,m.username
FROM [Table]his h, [Table]members m
WHERE h.his_id=
AND h.state=1
AND m.uid=h.his_creator
Error: 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 h.state=1\x0D\x0A\x09\x09\x09AND m.uid=h.his_creator' at line 4
Errno.: 1064

Similar error report has beed dispatched to administrator before.