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 (18652,44671,44687,44865,3883,17335,17351,24438,18688,18286,44768,5388,17092,44863,44894,24411,6609,44767,18430,44711,44856,17527,44685,17839,18427,9341,17755,37057,44854,17556,18719,6875,17835,45043,17114,34194,44866,13,45561,13988,44853,44837,18572,45515,32454,18900,44875,45262,5259,43800,8753,18996,18279,44869,17771,14622,18446,45072,44861,17009,44849,18301,17278,13425,45518,45180,18172,44835,44878,6782)
Unknown column 'np.person' in 'where clause'