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 (44685,18648,37267,44767,17601,45262,45042,44762,9341,44835,18042,17755,16935,17335,17756,44687,3883,45286,16885,18794,4765,17114,44765,44689,14622,44866,45277,34194,18237,28530,18652,44870,45346,18996,17492,24441,6862,45229,24411,44884,44868,44766,13922,45421,17657,45516,45567,44674,39676,30986,13988,18301,32454,18688,17556,5388,3,17835,45177,18353,13425,45515,44863,17278,17351,17527,44764,18981,17904,44873)
Unknown column 'np.person' in 'where clause'