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 (44745,44669,45517,44863,45518,39676,18650,44849,32454,34194,10402,17835,43800,45421,44878,28313,44767,30135,6862,18301,30963,45229,19057,17839,13922,16935,44766,18648,44884,17848,36472,17756,44674,17351,37267,44854,45346,44531,6782,45180,44894,19078,44851,17771,44858,37057,44870,44867,13988,18430,28530,5388,18427,17556,24411,44866,17092,44711,44855,44861,8753,45277,45567,44875,24412,45177,17904,44836,18719,44848)
Unknown column 'np.person' in 'where clause'