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,18446,17904,17492,16935,3,44768,18996,45421,44867,17009,17839,18185,44669,17527,44766,44861,24438,44775,45229,17755,14402,39676,16885,43800,4686,44854,17835,44849,44674,44745,17237,17981,45567,13425,44836,9341,18794,44868,18353,5993,18648,6862,45346,44837,44689,44894,8753,28530,44878,18900,44855,17114,45072,17601,37057,18650,18301,44845,13922,17848,44687,45518,17756,6609,17351,4765,44856,44866,44884)
Unknown column 'np.person' in 'where clause'