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 (36472,44764,32454,44878,18279,18042,19078,45346,45072,44768,24412,24441,44767,45517,44711,17904,44689,18237,18648,6862,44875,17601,18430,3,44884,18650,45051,44835,45042,44855,8753,30963,6782,44869,16935,17237,45515,44873,17981,18794,44865,17114,17703,24438,44845,18301,45177,44868,6875,18981,3883,5410,45277,22509,17756,44674,28530,45286,18572,17351,44854,44836,18172,28313,18900,17527,13988,18286,45561,44867)
Unknown column 'np.person' in 'where clause'