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 (17657,44878,17703,45561,24411,18650,17755,17904,5259,17771,18688,37057,8753,44865,44869,18981,18172,13988,18042,44855,18286,44767,18572,45043,44868,44837,44856,6875,44775,44845,45516,5410,44689,44762,44867,45042,24441,18794,17839,45515,4686,44745,18900,34194,45177,6782,13922,14622,30963,44711,44849,44866,39676,45517,44669,44531,13,17009,18237,37267,17527,44671,44853,44884,30135,31354,18427,18279,45262,18652)
Unknown column 'np.person' in 'where clause'