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 (16935,44767,44878,17771,44858,18427,17601,44765,32454,6875,44835,24412,18648,45286,17237,4765,28313,6862,18996,18981,44739,17755,45567,4686,18353,45517,14622,44640,17351,17278,28530,44836,24441,17848,44868,36472,44531,8753,44837,19078,17114,18688,45518,17657,44873,9341,19057,44768,44865,17092,44762,18794,44870,17904,18279,44853,17981,17835,45262,44867,44861,13,44764,18572,18650,45042,18894,37057,45177,18430)
Unknown column 'np.person' in 'where clause'