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 (17527,17755,28313,45262,17278,13922,6862,5993,18894,17839,6609,44671,3,6875,44849,18572,44669,44869,44854,24441,45518,44863,14402,45051,44640,18446,17492,43800,44866,45277,45561,16935,17981,18353,17904,45517,45180,44711,13425,45567,18185,44689,45072,44878,45043,5259,5410,44745,44687,19078,37267,17237,18648,44768,44894,18719,18279,39676,13988,44875,44858,24411,44845,44739,18996,44766,34194,18794,31354,18042)
Unknown column 'np.person' in 'where clause'