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 (17278,18719,45346,30963,44685,45517,44858,6609,44711,4686,45262,44766,44849,44854,45042,44768,44861,30135,45515,18185,44865,45229,17114,3883,17756,44867,19057,31354,44870,17848,13,14622,5993,44894,17835,19078,18430,18648,18981,24411,18286,17556,5410,24441,45051,39676,44875,18353,17703,45072,45043,30986,17755,17839,44775,6875,44866,18237,45561,24412,3,44640,18042,18279,45567,16935,18900,44836,44767,44739)
Unknown column 'np.person' in 'where clause'