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 (17351,44674,18648,45516,18430,44869,30135,17009,28313,17981,44868,44762,44873,28530,17527,36472,44858,5388,18652,18688,45561,45177,45517,44687,17848,17114,18981,5259,45043,45567,4686,44856,30963,17755,44768,44767,37267,17756,45286,5993,44861,13425,18353,44855,17703,18719,18894,3883,17835,44745,44870,45421,44764,44836,44853,45042,4765,44894,17237,44739,45072,14622,17492,17839,44851,19057,44766,45051,18996,44689)
Unknown column 'np.person' in 'where clause'