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 (44764,39676,45262,37267,45515,45286,44866,44837,5388,31354,17351,44835,17278,17556,28313,18794,45517,44739,45042,17755,44878,45072,17839,19078,18427,45421,17009,44767,18353,5259,13988,44711,6609,18650,44836,17657,18652,44873,44894,45177,18894,44768,17981,17114,44853,18688,18572,18301,44640,30986,17904,44689,45180,18900,44766,44762,22509,45346,13922,6875,44869,44669,18430,45229,45567,44863,13,16885,44685,45518)
Unknown column 'np.person' in 'where clause'