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 (44711,44861,24438,18427,17981,17771,5993,45042,18279,30135,22509,45043,16935,44768,19057,18794,44854,17278,17835,45262,4686,45346,17114,44866,18650,45421,45180,18185,44869,18996,6875,44836,45518,5388,44531,45229,44867,44640,44849,44894,45286,45177,45561,18430,14622,17848,30986,18648,45515,17601,17527,6609,5259,18446,10402,13,17351,30963,24411,44870,44855,44853,44766,18286,3883,44837,44764,44685,18981,8753)
Unknown column 'np.person' in 'where clause'