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 (44868,36472,44767,45277,44531,45515,18279,18427,44711,18900,44739,44869,30135,16935,18286,18688,44866,17092,32454,44764,44873,44836,45516,44894,44689,44858,18353,43800,18981,24441,45286,6875,44878,45561,18042,17492,44848,37057,13425,14622,17237,24412,17335,5410,44685,45051,18237,6862,45567,18894,17904,4686,8753,16885,44765,10402,18996,44854,17527,44766,18301,44855,18794,45421,17981,39676,44768,45518,45229,45180)
Unknown column 'np.person' in 'where clause'