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 (24412,17092,10402,44855,44861,44671,24411,45286,45042,5410,44851,45515,44837,18427,14402,5993,44768,44869,22509,44878,18572,44849,30963,43800,44762,44689,18172,44848,17981,37057,44711,45516,18279,45561,44765,8753,45517,17904,3883,45051,18185,17703,9341,44884,44766,13988,17601,18981,17492,44739,18996,17755,45518,44856,44894,32454,17848,39676,6862,18446,45277,13425,18301,44531,44867,18237,19057,45180,24438,16935)
Unknown column 'np.person' in 'where clause'