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 (45229,44671,18794,44865,17756,45515,18237,34194,18719,37057,13922,17527,13425,44711,45561,18981,17556,45421,18572,45072,44867,45516,44764,28530,6609,44762,14622,6875,44739,16935,24412,18353,44854,44868,18172,44775,18652,17009,45043,18430,45262,44765,17092,18650,44689,17771,31354,45346,3883,44861,44835,44875,5259,13988,30963,17904,45286,45517,45042,44878,17657,44863,18279,14402,17981,8753,37267,17755,17351,19057)
Unknown column 'np.person' in 'where clause'