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 (17527,30986,44884,44775,17904,18172,8753,13425,44711,44739,44867,44767,45277,17114,5410,17657,45561,6875,44531,39676,44851,44745,44671,44640,45515,18650,44848,14402,44863,17981,18353,30963,17771,45346,9341,44869,18286,45180,18652,44866,4765,5388,45072,6862,44849,45518,44685,3883,44870,34194,13,44854,45229,44853,45567,44762,37267,18430,44768,16885,17835,14622,45042,44766,44878,18572,17278,18279,32454,17756)
Unknown column 'np.person' in 'where clause'