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 (45517,44863,17703,10402,44671,17771,17756,18446,45516,45421,17527,45262,44875,30963,3,45229,44865,17237,44689,17335,44765,5993,24412,44674,18301,18719,17278,5388,30986,14622,45518,43800,37267,39676,44851,4765,45180,24438,44531,24441,6782,44867,13988,5410,44861,6875,44868,44854,18430,18650,17904,44687,44866,44855,17092,19078,45277,17351,18794,28530,44848,45042,36472,24411,16935,44870,17981,9341,45286,17114)
Unknown column 'np.person' in 'where clause'