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 (44739,17556,17351,5410,44768,6609,45277,6875,44873,17492,30963,13425,17114,45516,45515,44837,22509,45286,44765,6862,44669,44835,18427,19057,45072,18900,17756,18572,44851,18650,17981,45177,44894,44764,45042,17657,18430,45180,5993,19078,16885,18648,17839,18719,44861,17771,18794,44762,13988,18996,44845,14402,45518,5388,44689,17278,45517,18981,37267,44869,44767,18652,44854,18237,45051,44671,4686,44870,44849,6782)
Unknown column 'np.person' in 'where clause'