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 (6782,44687,17335,45286,24411,19057,44531,45042,44768,39676,6609,44764,45567,13425,14402,45515,44894,17835,24441,30986,44766,17703,18286,44878,45072,45180,17601,45177,44671,36472,43800,17009,24438,18301,44853,18648,44868,13,45517,44837,44875,18427,17492,44851,16935,18996,18688,5993,4686,17237,44669,13988,18042,44855,45262,44884,5388,44685,44674,17904,45421,44836,44711,31354,44854,18572,45518,17114,18794,16885)
Unknown column 'np.person' in 'where clause'