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 (32454,18996,18042,18900,18301,18172,18652,17601,4686,45042,44867,44849,45177,45515,44858,24412,17981,5388,17839,44767,45180,44861,37057,18894,18237,14622,17114,18572,17703,17756,17904,18981,37267,44765,44875,28313,16935,30135,8753,18353,18719,44894,44689,17556,44884,44854,45051,44868,44766,17755,44640,17771,45229,17848,24441,44865,9341,6609,44855,44687,17835,18427,30963,5993,24438,17009,13988,4765,18648,44851)
Unknown column 'np.person' in 'where clause'