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 (44894,44855,28313,45421,18279,45177,24438,17601,44868,44762,17835,17771,44764,24441,14622,17009,44866,44837,3,44849,17492,44671,28530,44835,44640,17278,36472,18353,4765,45515,17755,44711,44765,37267,5993,44875,17703,30135,45262,19078,17114,44687,44739,14402,8753,18688,18650,44856,17335,44836,18719,37057,13425,44851,44531,18185,24412,5259,4686,18652,17527,17981,45042,17092,17904,31354,44689,6875,18042,18286)
Unknown column 'np.person' in 'where clause'