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 (37057,44768,44856,30986,24411,24412,44845,44766,18172,10402,45567,13425,44858,45180,17009,44863,44837,28313,17278,45042,44875,19078,44836,18719,18301,45177,44865,17703,44687,45262,45515,44853,14622,4686,28530,43800,17848,44854,45277,17771,6782,44689,16935,44851,13,18572,44848,44884,44711,44775,45043,17114,44669,18427,44869,18237,18430,4765,17527,18652,17492,18185,13922,30963,45051,17092,18688,18042,45286,44861)
Unknown column 'np.person' in 'where clause'