Database error: Invalid SQL: SELECT `pk_type` as metamaxmontanttype , CAST( `pk_montant` AS SIGNED INTEGER ) AS metamaxmontant FROM `r_coupon` WHERE `pk_boutique`= AND ( ((`pk_date2`!='') AND (`pk_date2`>='2015-04-25')) OR (`pk_date2`='0000-00-00')) ORDER by metamaxmontant DESC LIMIT 1
MySQL Error: 1064 (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 ( ((`pk_date2`!='') AND (`pk_date2`>='2015-04-25')) OR (`pk_date2`='0000-00-' at line 3)
Session halted.