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 (44849,30963,6875,17835,17527,13988,44685,18900,31354,17237,45518,44739,34194,45072,44851,45561,44863,19057,45515,28313,44858,9341,28530,8753,44671,44878,37057,45177,45229,4765,17351,17981,17756,18719,18301,44868,32454,44768,45042,6862,45043,44867,18894,16885,14622,45262,45516,44531,44865,17755,24411,44835,44764,44689,43800,44853,44745,45346,5410,44869,44870,44866,3,14402,44873,44894,18279,18688,44767,18652)
Unknown column 'np.person' in 'where clause'