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 (19078,18172,4765,18286,44851,17114,45229,18996,44775,28530,19057,17771,3,17848,17756,44766,17657,4686,44858,14622,44687,6875,24412,18237,17278,44689,44768,37267,17981,14402,17009,3883,5259,44531,44835,44848,30135,44870,17556,13,17527,10402,44767,18185,45421,44894,17703,18719,45518,44866,6862,44854,17335,45346,5410,36472,13988,17755,18042,18981,44856,18427,44878,45262,45515,44849,24441,39676,44764,44762)
Unknown column 'np.person' in 'where clause'