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 (17839,17278,44849,45262,44775,17756,44878,45518,45177,6862,30135,13922,44745,32454,45346,44884,44870,44851,44853,5993,17703,36472,18648,18237,18286,18650,45229,44866,17009,24438,37057,18652,18572,19078,45042,45180,16885,18794,45517,44836,44739,44867,17601,44854,13988,28313,17492,5410,14402,4686,8753,18185,18301,17527,44669,24441,18900,44767,3,44689,9341,14622,18996,5388,44674,45421,44835,18719,22509,18688)
Unknown column 'np.person' in 'where clause'