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 (13425,44836,13988,45262,44835,45042,17756,18427,45051,24411,43800,37267,45567,17835,30963,44768,5410,44745,4686,18185,44861,45229,44863,18719,18688,44837,18648,44854,17009,17848,17092,18981,19057,17492,44767,18301,28313,44858,44851,44873,44765,45043,13922,6875,16935,13,44865,44711,17237,32454,18652,18279,44868,34194,16885,18572,28530,9341,44689,45516,10402,44671,45518,18237,18446,17771,3,31354,45180,3883)
Unknown column 'np.person' in 'where clause'