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 (44739,18430,45051,44884,45561,17601,44764,18794,44867,6862,17835,3883,44854,8753,17755,5410,31354,17527,16935,19078,44861,24412,19057,24411,18353,44873,44855,45277,17492,17657,43800,44767,45515,4765,45516,6782,44875,44851,44863,30963,18900,18446,17114,17335,17092,44894,5259,45043,44870,4686,3,17981,18652,18688,18572,44768,44848,18279,17848,44878,18996,44531,44674,45177,28530,18042,5388,39676,18648,22509)
Unknown column 'np.person' in 'where clause'