Zapytanie:
(select *, " (OFERTA)" as oferta from firmy where kategorie_firm_id=11
and wojewodztwa_id=13 and id>0
and length(oferta)>50
and spis_tlo_kolor<>''
order by spis_tlo_kolor desc, data_dodania desc, nazwa asc )
union
(select *, " (OFERTA)" as oferta from firmy where kategorie_firm_id=11
and wojewodztwa_id=13 and id>0
and length(oferta)>50
and spis_tlo_kolor=''
order by spis_tlo_kolor desc, data_dodania desc, nazwa asc )
union
(select *, null as oferta from firmy
where kategorie_firm_id=11
and wojewodztwa_id=13 and id>0
and length(oferta)=0
and spis_tlo_kolor=''
order by data_dodania desc, nazwa asc)
limit 0, 30;
zakończone niepowodzeniem