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 (44868,44745,44640,37057,30986,45346,44861,30135,17981,24441,18237,45561,44766,17527,13922,44762,19078,17835,45180,6609,5993,44878,17092,18279,18427,36472,17601,6862,44858,18430,17755,18572,13425,18286,28313,17114,18894,44775,44845,44768,18185,45229,17556,4686,44870,18446,44836,45051,44711,44867,44853,17839,24412,17703,44873,18648,45567,18172,24411,44671,18719,8753,3,14622,18042,44837,17848,44865,32454,45516)
Unknown column 'np.person' in 'where clause'