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 (17657,44870,45180,18900,17351,44861,17556,18996,18650,6862,45229,17904,17492,17278,24438,22509,18353,45561,18652,43800,30135,45515,44835,24411,30986,44531,32454,44689,13988,44869,45518,30963,34194,17237,44836,39676,44878,45262,17848,18237,44873,17755,18446,45567,17601,45177,17703,5388,16935,45346,18648,17839,45051,37267,6782,44866,44856,19078,28313,44867,6609,13425,18688,44669,18185,17771,17114,44685,18981,18430)
Unknown column 'np.person' in 'where clause'