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 (45421,45051,19057,3,24441,44669,44764,44867,32454,5259,17756,45262,44878,44870,45518,37057,18279,44745,44866,44894,17009,18650,17835,18648,9341,5388,45567,18894,45561,44765,16885,17657,17839,17351,45286,17848,45180,37267,17278,10402,18172,45277,44739,44671,6862,18185,18301,44767,44762,6782,6609,44854,39676,44711,5993,44849,17237,13425,24412,44869,14622,17703,44865,19078,17492,18042,18688,28313,18794,44836)
Unknown column 'np.person' in 'where clause'