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 (44855,44845,17114,45518,17657,44873,45177,19057,44853,18688,44894,44739,17009,18900,34194,18572,44848,22509,17527,17848,18996,44867,30963,45042,17904,30986,24438,18185,44671,6782,17492,44768,44775,44868,44531,36472,17981,45516,44856,18279,44765,5410,17351,13988,5259,17601,18794,45561,30135,5993,44861,44689,44851,44711,17771,45567,3,18042,37057,44884,17278,45515,17556,44836,39676,18301,13922,45229,45517,45043)
Unknown column 'np.person' in 'where clause'