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 (44835,18648,16935,13988,18185,44689,10402,44861,44767,18794,18894,5993,3,44884,44674,18042,4765,17237,17848,17703,18650,16885,45561,17556,18286,6862,45567,44894,44775,3883,45177,44768,28313,44870,17114,17657,17009,18996,44765,24438,17835,44873,45072,37267,18652,18719,44837,45262,17981,45043,18900,45277,19057,44745,44845,44669,17904,44711,45229,18279,44869,37057,17839,14622,45518,9341,44867,31354,44858,44848)
Unknown column 'np.person' in 'where clause'