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 (18237,45229,45567,17492,45277,18279,44689,17756,44837,18719,10402,18652,45518,45561,14402,44848,4686,44768,44849,6782,44875,44894,37057,3883,44866,14622,44863,39676,19078,44531,17237,18688,30135,5259,8753,44873,44640,44867,45043,22509,17755,18794,45421,44870,17839,45286,18900,17092,5388,45517,17009,17335,44861,31354,45346,37267,6875,44854,17835,28530,24412,17351,5410,44836,44766,24411,44674,45262,44764,13425)
Unknown column 'np.person' in 'where clause'