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 (44837,18900,45515,44869,17351,18237,44875,44856,16935,18648,18301,17527,45177,14402,14622,44685,18172,19057,17703,28530,17278,45051,45567,43800,18981,44851,45346,17755,19078,8753,18894,44669,44870,44739,9341,10402,13988,17335,17092,3883,17904,18719,44762,44689,39676,45229,44866,44854,5410,45517,44766,44855,44767,44765,45518,44861,44835,45072,45277,18572,18430,24412,17848,18446,24441,45516,18794,28313,30135,5993)
Unknown column 'np.person' in 'where clause'