FUNCTION otbime_db.otelfiyatdata does not existSELECT otel.*,otelfiyatdata(otel.idotel,otelfiyattarihsec(otel.idotel),1) as fiyatdata,otelaciklamalari.*,CASE WHEN (otel_indirim IS NOT NULL AND CURDATE() <= otel_indirimbitis) THEN 1 ELSE 0 END as indirimaktif,otelkonseptleriaciklamalari_ad,otelsiniflariaciklamalari_ad,(oteldosyalar.filename) as resim,otelcurrency.currencyfactor as otel_dovizkur,otelcurrency.currencysign as otel_dovizsembol,@dovizkur:=actcurrency.currencyfactor as dovizkur,actcurrency.currencysign as dovizsembol,otelkonumstr(idotel , 1 , 2 , 1 , 2) AS otelsehirkonum FROM otel LEFT JOIN otelaciklamalari ON otel.idotel=otelaciklamalari.otelaciklamalari_FKidotel AND otelaciklamalari.otelaciklamalari_FKidlang=1 LEFT JOIN oteldosyalar ON oteldosyalar.idoteldosyalar= otel.otel_FKidoteldosyalar LEFT JOIN currency otelcurrency ON otelcurrency.currencyname=otel.otel_FKcurrency LEFT JOIN currency actcurrency ON actcurrency.currencyname='TL' LEFT JOIN otelkonseptleri ON otelkonseptleri.idotelkonseptleri = otel.otel_FKidotelkonseptleri LEFT JOIN otelkonseptleriaciklamalari ON otelkonseptleriaciklamalari.otelkonseptleriaciklamalari_FKidotelkonseptleri=otelkonseptleri.idotelkonseptleri AND otelkonseptleriaciklamalari_FKidlang=1 LEFT JOIN otelsiniflari ON otelsiniflari.idotelsiniflari = otel.otel_FKidotelsiniflari LEFT JOIN otelsiniflariaciklamalari ON otelsiniflariaciklamalari.otelsiniflariaciklamalari_FKidotelsiniflari=otelsiniflari.idotelsiniflari AND otelsiniflariaciklamalari_FKidlang=1 WHERE idotel='744' GROUP BY idotel