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 (45517,44845,10402,44884,17839,17703,5410,44764,13922,44531,18172,44671,44856,44685,30963,45043,17114,18286,18427,44894,44865,45561,32454,22509,45072,44766,44687,28313,45262,44853,44858,30135,44745,24412,28530,44867,18650,17009,34194,45180,18719,17601,6609,44868,6875,18279,3,14402,24411,18996,8753,18301,17237,45518,24441,18185,17755,45042,43800,18648,44855,44870,4765,6782,17904,37267,18042,17527,44849,4686)
Unknown column 'np.person' in 'where clause'