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 (45180,44861,44856,44867,10402,44837,6782,8753,18981,44865,45286,18652,18894,44835,3,45262,44868,44894,44531,44745,17848,18301,22509,5388,17278,24411,6862,44854,17755,45517,44853,18446,24412,44851,43800,17556,17335,45051,18172,13922,30135,44855,4686,9341,45561,45229,24438,44870,17009,44767,6875,45072,18996,45421,45518,44869,28530,17237,13,45177,18279,17092,18648,45516,45277,17904,13425,17771,5259,44873)
Unknown column 'np.person' in 'where clause'