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 (17601,44875,3883,44855,18894,44765,18648,45177,13988,44764,45561,44854,44687,28530,44739,31354,30986,44711,45346,17556,45072,39676,18996,44865,18237,5410,22509,44767,17771,17755,44768,45567,45042,5388,18185,44858,44836,18900,5259,45516,4686,44845,6782,18430,45043,18981,18719,18794,44868,44863,3,44867,44531,13,44640,45051,17904,13922,17351,44870,24438,17237,44851,18427,45517,30963,16885,44884,37267,44685)
Unknown column 'np.person' in 'where clause'