Klaida: klaida jūsų SQL užklausos sintakėje
select id, title_lt as pavadinimas, meniu_id, alias, photo_from_small, photo_to_small, photo_from_org, photo_to_org, technikos_id, photo_from_small_h, photo_from_small_w, photo_from_big_h, photo_from_big_w, photo_to_small_h, photo_to_small_w, photo_to_big_h, photo_to_big_w from mod_catalogue_technikos where rodyt_pradiniam='1' and id not in () order by rand()