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 (17771,45567,45421,18430,16935,44711,45286,24438,13988,44867,44848,17527,44764,18650,19078,17335,17756,44640,5410,3,44851,13,44674,44853,44765,17904,18172,44689,17657,45072,24412,18981,45180,14622,39676,37267,6875,45516,6609,34194,18446,44875,14402,43800,44669,44866,44767,17114,45561,13425,36472,3883,17848,44849,5993,44855,24411,17237,44854,45346,17755,45262,17492,18996,28313,9341,31354,17981,44870,17278)
Unknown column 'np.person' in 'where clause'