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 (32454,45042,17114,45277,17703,24441,17848,4765,45421,44873,44762,10402,18794,44868,8753,6875,44640,18301,18719,44775,45286,44858,44866,45180,5993,18185,13,37057,17771,45518,16885,45051,44861,24438,17839,13425,44837,44685,5388,45177,5259,45567,18688,17904,17492,44878,44865,18042,17278,17335,3883,18996,6609,44674,18172,44766,16935,44767,13988,44863,28313,28530,44848,18430,44764,37267,22509,44875,44854,14402)
Unknown column 'np.person' in 'where clause'