mysqli Error:
SELECT count(idCategoria) as total FROM descuento WHERE  idCategoria =  AND idPais = 1  AND status = 1 AND fechaInicio <= '2018-12-12' AND fechaExpiracion >= '2018-12-12' 
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 idPais = 1 AND status = 1 AND fechaInicio <= '2018-12-12' AND fechaExpiraci' at line 1