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 (44764,44848,5410,17756,18650,18427,28530,44867,17492,18648,18794,17278,44711,17839,44768,3883,18042,44875,6875,44866,30963,44854,44884,18996,44767,45517,16885,44856,17092,45229,17771,24438,17601,24411,6782,45567,31354,44836,17237,4686,45561,17703,44869,3,44739,45180,17009,18900,30135,44861,18279,44851,44531,18353,8753,16935,45516,43800,44775,18172,45177,45072,32454,44873,17114,17657,10402,44689,18719,44845)
Unknown column 'np.person' in 'where clause'