ERROR WITH THIS SQL: SELECT * FROM `promocode` WHERE promocode_type = 2 AND idProperty= AND code = '392233';