LEADPHP! info: MySQL Query Error

Time: 2020-2-21 7:27pm
Script:

SQL: select count(id) as num from nz_info where sort_id=
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 '' at line 1
Errno.: 1064