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 (45518,5388,30986,13,18172,17848,17703,28313,44848,18650,14622,5259,44856,17657,18185,3,18981,39676,45421,44764,18353,30963,44745,44775,45042,45072,44884,44894,45515,44689,17755,44762,17237,44878,37057,45051,28530,18719,44875,45517,17756,45277,44674,45567,17114,17904,44868,44855,8753,31354,18894,36472,6782,45262,18446,18572,9341,14402,44835,45180,17492,18652,44861,44711,17839,18648,44687,13922,44851,5410)
Unknown column 'np.person' in 'where clause'