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 (17351,18981,18301,44768,45518,44674,28313,18900,18648,44669,45229,44870,13,18430,45516,18894,37267,45515,17839,44851,18042,44775,43800,44762,44765,44856,30963,45177,45421,44861,31354,18353,8753,18172,45051,44767,44848,18279,30135,44863,44894,24441,17237,17703,18652,44866,45072,44764,18237,14402,18794,44836,17009,44711,39676,44867,18427,44640,44855,17601,6875,16935,19057,10402,24411,44837,18996,30986,17278,6782)
Unknown column 'np.person' in 'where clause'