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 (31354,17278,44745,18430,45262,44867,17527,17848,45072,18185,44853,44766,44858,18652,44669,44531,45051,39676,45561,13922,30986,44835,44640,44866,44711,17703,44851,45516,18900,44685,17839,17756,44768,18427,44845,17981,6875,17009,17492,45346,37057,17114,10402,24441,13,18237,44767,18446,17755,45043,44848,44856,3883,18719,44869,37267,44878,3,36472,18894,44671,18996,6862,18301,44775,45286,18353,24411,44863,44837)
Unknown column 'np.person' in 'where clause'