SQL info: MySQL Query Error

Time: 2008-12-5 5:09am
Script: /showpic.php

SQL: SELECT COUNT(id) as pnumber FROM t_picture WHERE type= AND parentid=
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 parentid=' at line 1
Errno.: 1064