SQL info: MySQL Query Error

Time: 2019-12-12 2:13am
Script: /keshi_shownews.php

SQL: SELECT * FROM t_pepartments WHERE pepartments_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