$ 0 0 what if you added another condition to your where statement. select *from tablewhere col1 = :inputParamAND col2 <> '';