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,45515,45180,17848,32454,45516,18650,44854,18894,45561,17492,44858,45042,44669,18172,5259,44868,17756,17835,45518,45229,30135,18688,13922,30963,44856,45177,44851,6609,17114,17703,45043,17755,44531,44848,9341,44878,17092,28530,44674,44873,18430,18719,18042,18237,37057,17237,13,45072,18446,13425,34194,17601,44861,44711,14622,44884,18900,44739,44863,17527,17009,18286,44640,37267,13988,5410,18794,45262,28313)
Unknown column 'np.person' in 'where clause'