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 (6875,44868,17756,17904,44854,45567,18894,17835,18185,32454,13425,44884,45286,19078,17527,37267,44669,3,44856,44531,44894,24438,44762,44837,18301,8753,44851,45277,17703,44861,30135,45421,6782,18900,17009,13922,45180,44739,18688,28313,44640,45346,45517,44858,43800,17848,18279,44849,44855,37057,45516,17237,17278,24411,44867,22509,4686,19057,45043,44674,44767,44836,18981,18286,17981,17771,18353,44848,5410,44687)
Unknown column 'np.person' in 'where clause'