Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44894,17981,44836,13425,36472,28313,37057,6862,44848,4765,18427,13988,6609,44858,45421,14622,30986,5993,17904,44854,18652,45051,44764,18185,44884,5388,45517,44869,44745,44531,44875,17335,44674,18648,44853,44685,17755,17848,44767,44870,18430,3883,39676,45229,10402,9341,44856,17527,18650,6782,45518,44640,17835,18279,32454,18572,34194,17657,45515,24412,24441,44739,45042,44765,13922,44865,44878,44835,31354,19078)
Unknown column 'np.person' in 'where clause'