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 (17278,44884,3,44640,36472,17848,13425,34194,44866,18301,24412,44851,44865,44878,17556,44745,45180,13,18650,30986,3883,44849,17492,18981,45277,13922,44869,18279,44837,44775,44836,4686,18042,17527,5410,45042,44855,43800,18688,18353,45051,17237,17835,45561,32454,44894,18572,45421,17703,18794,18648,45567,45262,44739,4765,44856,24438,18430,31354,44689,24441,44531,18719,24411,18172,17771,17839,18996,45517,16935)
Unknown column 'np.person' in 'where clause'