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 (18446,44865,17657,17114,17092,13,6862,45515,24441,45043,18353,44739,32454,18279,13988,17904,5388,44867,44640,44858,17981,17009,18996,18688,45277,45180,8753,18794,17556,18719,45516,18172,44875,45567,18286,17848,44765,45042,18648,44856,18237,18185,44764,6875,18042,44766,9341,44866,17335,44884,5410,17601,44768,44863,16885,17771,37267,44687,13922,44855,30135,19057,30963,28313,45286,17835,44531,3,44854,17237)
Unknown column 'np.person' in 'where clause'