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 (17092,17657,18794,8753,44768,22509,44764,44745,13988,6609,44836,39676,17237,44671,5410,17009,44856,45516,32454,44711,45043,44884,44867,44868,18981,24441,45229,45518,16885,18279,18430,18301,18996,17848,45286,44640,17771,6862,44685,45051,17703,44869,34194,44855,17601,18185,44851,31354,17835,44865,18286,44835,45277,17981,9341,18719,44849,18894,45421,18042,13,17904,18172,44845,43800,18353,17839,44762,18688,45346)
Unknown column 'np.person' in 'where clause'