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 (45517,24412,13,44766,32454,45277,17904,45567,44894,31354,45043,44640,18900,44745,18648,30963,45042,5388,44873,45516,44866,18237,44865,4686,17771,45286,17009,44762,17492,28530,44687,44845,3,18185,44767,44768,18650,5259,45515,44868,44855,19057,8753,44775,44870,17335,17835,44858,39676,44856,17527,18894,17657,5993,44848,17278,17755,43800,17981,6609,44878,5410,19078,45262,9341,18572,16935,44765,44836,13425)
Unknown column 'np.person' in 'where clause'