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 (44867,44739,45043,17527,17703,45042,22509,43800,18042,39676,6875,3883,44869,45561,18286,44875,45072,18794,45051,6862,36472,45516,44858,14402,44671,44894,45177,17839,44848,18996,18652,24441,17092,44775,17601,17755,44669,45421,45277,32454,17114,9341,13922,45346,44861,44762,13988,44767,10402,17351,44711,44855,44856,18572,17278,44884,44689,44849,30135,44531,18353,37057,19078,34194,18427,6609,18237,8753,18279,18900)
Unknown column 'np.person' in 'where clause'