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 (44739,14402,18688,44861,9341,44689,28313,31354,4765,44858,5993,18900,44878,17703,44766,44669,18185,44674,44775,44849,17839,44687,18427,44856,18981,34194,18650,44869,44855,17556,44531,45346,17835,19057,45180,44767,8753,17351,44835,44837,17848,44875,44851,5410,45177,18894,13425,37057,17114,10402,17009,45516,17755,17756,44711,44745,18996,18430,45517,44848,17904,45042,24438,44685,18719,17335,18446,13988,45515,17492)
Unknown column 'np.person' in 'where clause'