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 (44669,24411,44858,44865,17771,13425,44861,14622,19078,18042,45518,18648,44685,17114,24441,17904,44867,17351,17657,45180,18237,4686,45177,37267,44849,17848,18427,44884,18185,45042,18572,28530,18353,45516,44866,44851,17335,22509,44869,31354,5993,44836,44739,5259,36472,45229,45567,44689,17755,6609,17527,44687,44837,17092,44855,18719,18301,13,37057,45421,44894,45072,6782,44835,44762,13988,24438,24412,17835,30986)
Unknown column 'np.person' in 'where clause'