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 (44849,16885,17556,44669,44764,44640,44766,18648,44689,44685,44835,44854,3883,24411,45515,22509,5993,13922,45072,45180,17278,17351,44875,6782,10402,18042,6609,44865,37267,45567,44765,45277,44531,18172,13988,9341,5259,18900,44837,14622,16935,17492,17703,44894,3,45516,44858,17114,44856,34194,17835,18894,14402,13,45043,8753,18446,19078,44836,44767,45177,17601,44866,45346,45051,37057,45042,44851,18652,17527)
Unknown column 'np.person' in 'where clause'