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 (16935,44674,44863,17351,44884,18185,45229,34194,44875,24412,44854,30963,44878,30135,13,31354,45518,44836,39676,44531,13425,44866,6609,44856,45051,18719,44869,44861,13922,44671,44689,45515,17981,18900,18650,18688,5410,17839,10402,5388,44853,30986,18237,3883,18446,17009,19057,17755,5259,6862,17904,9341,32454,45042,4765,44745,44867,18430,28530,44711,17756,17657,44851,18172,44687,24411,13988,45516,14622,44849)
Unknown column 'np.person' in 'where clause'