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 (6862,18286,44711,18900,17981,44767,18688,13,18353,16885,13988,44869,24411,44531,3883,18981,44865,18650,44868,45043,44854,17703,31354,44851,45177,45421,17527,18996,18719,45516,24438,18652,5993,45517,8753,45072,4765,18172,37267,44685,18237,18446,44764,14622,19078,4686,18301,18572,6609,45518,44687,44845,44640,44689,9341,30963,45051,17237,17904,17657,17092,44836,44866,45286,44835,44849,44867,37057,18042,44870)
Unknown column 'np.person' in 'where clause'