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 (28313,44845,44870,18185,18172,44640,17237,45180,45421,32454,18237,18648,18719,24412,17657,17351,44775,24411,44848,44765,44858,30986,24441,17835,17114,4765,39676,17703,44762,45515,5993,44856,44865,13,16885,45042,17278,10402,18996,34194,18650,17848,4686,45277,37267,6875,18279,45262,5410,17335,18981,44764,44884,45177,6862,31354,45517,18353,13425,9341,18688,44866,17756,45043,45051,44851,44868,45346,18446,17904)
Unknown column 'np.person' in 'where clause'