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 (18652,18286,44856,45567,18279,28313,17601,44878,16935,9341,44873,5993,18430,30963,44669,17848,45043,18301,44851,17351,14402,45177,44854,18648,22509,44870,36472,24441,18996,4765,44765,37267,44863,17703,44767,17335,18427,17009,24412,45072,44853,39676,5259,30135,17755,44848,17756,18572,44894,44849,45042,45286,30986,13988,44764,18172,44775,44671,17981,45262,44689,17657,45561,18650,44837,34194,44835,16885,18900,17527)
Unknown column 'np.person' in 'where clause'