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 (17848,45421,44869,18301,44878,18794,18185,45072,44640,18279,5259,44848,34194,44873,37057,45286,45262,44845,44837,39676,30963,45277,44849,18652,18237,44671,17527,18042,44854,45346,45516,30135,44669,18648,17092,18572,17657,44875,44711,30986,14402,24411,10402,17839,44868,18353,18719,44894,17009,17492,18981,44745,45515,17556,17703,18172,44531,17904,45180,18650,44762,17835,36472,18894,17351,44858,6875,18427,19078,44851)
Unknown column 'np.person' in 'where clause'