MySQL Error: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 '' at line 1

ERROR EN SQL: SELECT distinct `pk_aut_foto`, `fk_int_cadena_hotel`, `fk_int_hotel`, `txt_archivo`, `txt_archivo_mini`, `txt_link`, `int_orden_hotel`, `int_orden_cadena` , `bol_is_foto_externa` , `int_estado` FROM `tbl_foto` WHERE `int_estado`=1 and `fk_int_hotel`=