<?php select c.categories_id,c.categories_image, cd.categories_name, cd.categories_htc_desc_tag from " . TABLE_CATEGORIES . " c, categories_description cd where c.art ='0' and c.categories_id ='" . (int)$parent_category_id . "' and cd.language_id='" . (int)$languages_id . "' and c.categories_id = cd.categories_id UNION select c.categories_id,c.categories_image, cd.categories_name, cd.categories_htc_desc_tag from " . TABLE_CATEGORIES . " c, categories_description cd, featured_categories fc where c.art ='0' ".$categories_featured_sql ." ".$manufacturers_featured_sql." and cd.language_id='" . (int)$languages_id . "' and fc.status='1' and fc.categories_id = c.categories_id and c.categories_id = cd.categories_id LIMIT 2 ?>
i pytanie jak w temacie,
kiedy daje order by rand() losuje z obu zapytan a chcialbym aby wybral losowy rekord tylko z drugiej czesci zapytania, z gory dzieki za pomoc