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 (43800,18996,45042,18430,5259,16885,44836,10402,18042,5993,18572,32454,17237,17114,13988,44878,18794,45072,45421,5388,44870,44849,44861,18172,45177,44766,17848,45286,45051,18446,44767,44853,44837,44689,30963,18286,44875,45515,17009,18652,17835,17351,44848,39676,45561,24412,17981,17601,3,44671,37057,45516,17703,18237,18719,34194,24441,45567,44669,44775,37267,45229,44858,44531,19057,8753,17839,19078,17092,17556)
Unknown column 'np.person' in 'where clause'