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 (45229,17703,45517,18301,44894,30135,44765,14622,18688,39676,44875,44762,44685,44689,45286,45043,44884,10402,5388,44869,17335,18430,13922,5993,37267,17009,6609,18185,17351,17492,13,18652,17556,44849,44868,18650,45180,34194,45277,44835,44687,44853,44851,13988,17839,44878,18648,43800,44674,18719,32454,18286,44858,44711,18237,44865,45515,44856,30986,24411,17904,44640,17848,24441,4765,17237,17981,18279,17835,44669)
Unknown column 'np.person' in 'where clause'