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 (45229,6782,14622,24438,17756,18353,43800,16935,44531,44685,18652,44848,44875,44867,45346,19078,18650,44884,18894,45043,6862,44856,44711,44836,44849,44766,45421,17835,44837,44866,18301,17839,44870,44853,45515,16885,13988,13425,5410,44674,45516,44854,45286,24411,18446,45042,44894,22509,17335,17237,18279,13,17981,39676,17657,17755,30963,18042,4686,37267,17848,32454,44745,45517,18648,6609,44768,24412,18719,17114)
Unknown column 'np.person' in 'where clause'