Ошибка :SELECT id FROM catalog WHERE a.id>0 and activ=1 ORDER BY rand() Unknown column 'a.id' in 'where clause'