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 (17756,36472,18286,6875,45421,45516,44851,44845,17771,18572,44768,44884,8753,45346,17755,44854,44861,18279,18719,28313,17657,17556,17114,44873,44856,24411,17835,14622,45286,18353,17092,5410,45515,44894,44866,4765,17848,43800,13425,17703,39676,17492,18688,18301,45229,45180,44848,44868,44739,44764,44836,45518,44671,18172,24438,3,44711,44689,17351,18650,17904,44867,17839,44849,5388,5993,18185,30963,44745,19057)
Unknown column 'np.person' in 'where clause'