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,17904,5993,5410,3883,30986,44866,17601,31354,6875,44764,30963,44894,13425,19078,44870,37267,4686,18794,45346,45567,34194,37057,17771,4765,44861,24412,44873,28530,18430,43800,18042,44855,17835,44849,17237,44674,44685,18185,17351,17335,44837,45517,44858,39676,18650,24438,14402,18996,17114,13922,36472,45515,14622,44853,18279,44868,18894,44687,44765,44856,17981,17278,5259,16935,30135,44640,44669,28313,17839)
Unknown column 'np.person' in 'where clause'