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 (45043,17755,30986,45517,44766,36472,19057,18301,45561,13425,18996,17114,17756,10402,13988,9341,44775,17527,17009,19078,18719,44765,44745,44687,44739,44868,44531,17771,13,31354,39676,45346,17601,17351,45516,18042,44870,18172,17278,17092,45177,45421,44689,17703,44884,17237,30963,44894,44762,17835,45051,24441,45515,5259,17904,18900,44873,44866,44861,18981,45042,44863,45229,44837,16935,18237,18688,44768,18430,44671)
Unknown column 'np.person' in 'where clause'