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 (44711,32454,17771,3883,18301,18572,24412,44861,37057,39676,45277,44851,44875,17114,44640,14402,44767,45177,44856,44764,17009,13922,45515,44854,22509,45517,17527,19057,16885,18237,44865,30963,18172,18981,17756,5410,18279,18042,44836,17657,44768,6782,6862,44845,44867,18648,9341,30986,3,36472,30135,17237,18446,18286,18185,45180,44765,45262,17278,6875,10402,31354,45518,17981,44863,45561,44835,17601,17556,16935)
Unknown column 'np.person' in 'where clause'