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 (17981,37267,45262,30963,44739,18279,45518,17771,45177,18894,18042,18652,17351,44849,44855,44764,45051,31354,44861,44894,17114,17839,44767,5993,9341,45561,16935,39676,44878,44869,18650,3883,17092,14402,37057,44674,44531,17237,18237,13425,44837,44870,17556,18301,45421,45043,45346,18996,44848,18430,19057,10402,44866,44669,8753,44884,44775,18427,17335,43800,44766,18688,24412,17601,17904,28530,17703,17492,24411,18981)
Unknown column 'np.person' in 'where clause'