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 (18652,18042,44878,44853,24411,44894,31354,5259,18572,18185,44745,3883,18237,44855,13425,17114,16885,5388,18650,44866,28530,17556,44775,45561,6782,44848,17755,18981,44739,14402,44845,19057,32454,44849,44685,6609,18427,13,44867,17904,44865,17657,18719,17601,30986,45043,45042,44640,44875,14622,39676,45346,45518,4686,10402,45516,17009,17527,44768,44674,18688,45051,8753,44851,4765,18430,45262,44762,45072,18894)
Unknown column 'np.person' in 'where clause'