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,44861,45262,28530,32454,45180,18996,44875,17703,45561,37057,18719,44884,19057,36472,44865,44764,17848,44848,18172,13988,17556,18688,44894,44745,18981,45277,17771,44739,45051,10402,44685,44878,17904,17756,44687,24438,14622,17755,45518,44674,3,43800,44767,44837,16935,18652,44856,13425,39676,18301,44835,44851,24441,14402,30963,17335,44711,44689,9341,44669,17237,44869,44867,44866,17839,19078,44849,45042,13922)
Unknown column 'np.person' in 'where clause'