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 (44674,44531,37057,45042,19078,44775,18446,32454,18996,44878,44766,18286,18301,17601,17009,14402,6862,44671,6782,18981,17771,45518,44848,17981,44856,44768,45421,18172,44669,17904,44870,3,44745,44765,44894,18900,44858,16935,34194,5993,8753,44861,18185,17848,45516,44868,28530,31354,24411,18894,13425,45051,18572,44855,45262,44837,44854,24441,18279,44640,17335,13988,45346,44767,17703,44866,44851,44884,28313,18427)
Unknown column 'np.person' in 'where clause'