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 (37267,16885,10402,17278,5410,32454,45567,44858,19057,3,17492,17835,18353,37057,17703,44687,45515,44669,44848,45561,34194,22509,44764,18286,44866,17114,19078,44845,45517,18794,45421,17335,45177,18172,44867,18427,17755,44856,44640,45180,39676,44894,13988,44674,17848,44762,45286,45229,44835,17527,6782,24441,18719,44869,45051,5388,44836,17092,18652,8753,45042,18446,44767,17351,18042,44711,30986,44865,17771,18430)
Unknown column 'np.person' in 'where clause'