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 (44674,17839,44685,44765,45072,17904,44854,17527,5388,18688,44894,45515,17835,18185,18981,45177,18353,44711,28313,16935,43800,6862,32454,45051,4686,14622,18650,18286,44531,17092,30986,3,44853,17556,18652,44767,18172,45517,45286,45561,17703,18237,44865,44775,44766,44835,45043,18794,44764,4765,17237,17756,44739,31354,28530,37057,17335,24411,6782,44745,44768,44849,17009,36472,45042,5410,9341,22509,17114,45567)
Unknown column 'np.person' in 'where clause'