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 (45561,18237,44868,17009,17278,17492,44878,10402,14402,45051,18981,18279,36472,19057,18572,24411,44835,13922,45177,45072,9341,44845,5993,44837,44640,44856,17114,45042,44768,44866,18430,44894,44836,44861,24441,28313,44766,44865,45346,44853,44711,17556,17904,8753,24438,18353,18648,31354,17527,44849,19078,44870,14622,44739,45518,18652,45567,44863,6862,45516,18688,32454,18794,18900,44671,17981,17839,44685,45180,18185)
Unknown column 'np.person' in 'where clause'