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 (13922,34194,44884,17771,17981,44853,44867,45180,44739,44640,18430,13425,18279,44768,44689,44669,18427,6782,44878,18996,30135,18794,6875,5388,45277,45177,18688,45042,17904,24441,44674,18042,18981,17351,30986,14622,13988,18572,44767,19078,44861,44835,37267,14402,18894,44894,17492,18652,16935,44531,32454,30963,5410,44745,44854,44671,17657,17755,45517,18286,18185,45286,24412,18648,37057,18237,18650,3,17009,17278)
Unknown column 'np.person' in 'where clause'