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 (45421,19057,18572,44869,17114,18981,39676,44851,45042,44835,44863,44853,34194,45286,45277,44762,44766,17335,17839,18648,5993,44870,28530,18279,17848,19078,18430,44685,18172,9341,17771,45229,44689,18301,44671,45043,44865,17755,18894,44767,44768,17527,44868,45051,6609,31354,18353,30986,44854,14622,44711,45567,17492,44640,17092,44861,24441,3,45561,17703,44848,18237,18794,45516,44855,8753,18719,18900,45262,44858)
Unknown column 'np.person' in 'where clause'