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 (5993,19057,6862,24441,44878,44856,44762,44835,24412,34194,44764,45515,37267,22509,6875,18353,45229,18172,18650,18042,30986,45072,13922,44866,44884,31354,18446,13425,13,17835,45043,17657,45518,44711,3883,18185,18652,44687,39676,14402,17839,14622,17237,17756,44861,44868,16885,18427,8753,45567,45042,44765,18996,45561,17848,18237,18894,17114,44854,19078,4765,44674,45051,17092,3,44739,44745,17351,18981,30963)
Unknown column 'np.person' in 'where clause'