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 (44856,30986,13988,44894,36472,44640,44875,18353,45561,31354,18981,13922,18572,18279,44764,17601,44674,17009,45515,18719,44853,44531,44851,44854,17835,14402,19078,3,45229,44845,6862,17114,44689,18446,18185,17756,45051,24411,45277,18894,18427,32454,44863,39676,13,18042,44687,45516,17335,17092,45177,28530,44866,45567,44865,45346,34194,37267,43800,30135,18794,5388,44855,44836,44669,17527,17904,45262,45043,44849)
Unknown column 'np.person' in 'where clause'