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 (45567,18900,17904,44764,19057,18648,18427,44739,44687,44674,44848,45518,44671,44689,17092,5259,44640,44685,44837,17335,44854,44845,45277,17771,44762,17114,39676,17657,44869,37267,45421,44745,18430,17527,44767,44867,18353,17009,32454,45262,44875,18688,19078,28313,14402,6862,44894,5388,45051,45516,45515,18185,17755,17981,18981,44873,44861,18650,10402,18042,22509,30986,6782,45180,17848,5410,4765,13988,8753,18446)
Unknown column 'np.person' in 'where clause'