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 (13988,44851,45042,17527,5993,36472,44861,17092,44689,17756,45561,37057,45262,4686,5410,18430,44768,30986,44858,18719,22509,24441,31354,44671,45072,18648,18572,6862,3,18042,18894,44669,13922,45051,43800,17351,44870,45177,44853,44531,17904,44854,19078,44868,13,14402,17278,16885,45346,44640,44711,44856,44848,44884,17114,17839,6782,44894,44685,44865,44866,18981,45286,13425,19057,44687,44836,24411,18650,45518)
Unknown column 'np.person' in 'where clause'