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 (6862,30986,17556,18719,30963,18996,17848,44711,45043,44768,44867,45277,17527,17771,45561,44868,19057,24441,18650,44855,44669,14622,17114,44870,10402,28530,18652,18981,44865,18430,4686,44762,3,19078,6609,18894,17703,17335,13,17981,6782,24412,44687,17601,44685,17756,17237,17657,45515,45421,31354,44766,44869,18172,18353,5993,14402,45346,45286,18237,37267,36472,44848,44764,39676,4765,44845,18572,18279,18446)
Unknown column 'np.person' in 'where clause'