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 (28313,18237,43800,18042,18430,17114,45072,18172,17703,39676,44894,44849,30963,45516,5388,19078,16935,6875,44768,44884,18719,17527,45277,44531,8753,16885,18185,45567,44762,45180,5259,9341,45518,44853,17278,45517,5410,3,17848,44687,44836,34194,44765,37057,18652,18286,18981,18353,3883,24441,44767,17556,45043,17492,17092,44873,45421,13425,44856,17351,13,18427,44855,44640,44866,45051,44854,44869,44845,17904)
Unknown column 'np.person' in 'where clause'