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 (44869,24412,17009,5410,18430,17237,30963,17756,45567,45561,17839,18172,3,13425,44878,17703,18301,18650,39676,44861,6862,18648,4686,45286,17492,44851,3883,18572,44894,45051,44867,45042,17092,45043,45517,28530,37267,17335,44768,44856,17771,17755,17114,44884,45516,6609,44849,19078,4765,18894,44870,44845,24441,44687,44640,36472,17556,44739,45180,44866,18286,43800,17835,18353,5993,44855,44858,16935,18427,44685)
Unknown column 'np.person' in 'where clause'