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 (30963,45516,17492,18981,19078,45421,44689,17755,44866,18430,45517,28313,14622,10402,44674,18042,44867,44835,17904,17657,45229,13922,45515,44531,18237,44765,18996,16885,18572,44856,45043,44851,44878,44873,43800,44894,6875,3883,17601,18794,44884,32454,44837,4765,44711,44849,18652,24412,18353,44863,36472,45072,44685,16935,44868,3,18427,44869,17009,24411,37267,44739,45262,34194,18446,45042,6609,14402,44767,44853)
Unknown column 'np.person' in 'where clause'