Unknown column '' in 'order clause'select *, 1 as `table` from `catalog_i` where `C_ID` LIKE '%,399,%' AND catalog_i.STATUS <> 0 UNION SELECT *, 2 as `table` FROM `oddments_i` WHERE `oddments_i`.`C_ID` LIKE '%399%' AND `oddments_i`.`C_ID` <> 'NULL' AND `oddments_i`.`C_ID` <> '' AND `oddments_i`.`STATUS` <> 0 AND `oddments_i`.`ARTICUL` NOT IN (select `ARTICUL` from `catalog_i` where `C_ID` LIKE '%,399,%' AND catalog_i.STATUS <> 0 ) order by `PRICE` ASC, `` limit 0,12