Error: SELECT * FROM bloqueos_fechas where clv_b= AND type = 1 AND fechas_bloque >= CURDATE() ORDER BY fechas_bloque ASC.
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 type = 1 AND fechas_bloque >= CURDATE() ORDER BY fechas_bloque ASC' at line 1