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 (24412,44685,44835,39676,5259,5410,45346,28530,17839,17703,45043,18688,5388,17527,24438,3883,18279,44856,4686,6782,44849,44687,17335,44861,18648,31354,44669,14402,19057,18900,44870,17904,14622,6609,17237,44739,18794,17848,45517,30135,36472,45180,17092,44884,44873,45051,18427,3,28313,45177,37057,34194,44875,44689,17657,8753,24411,45229,44894,44711,17756,30986,44865,9341,18185,18446,44671,45286,17755,17278)
Unknown column 'np.person' in 'where clause'