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 (44775,18301,45229,17981,44878,19078,45180,44836,44849,18688,16885,28530,39676,4765,17703,45346,30986,16935,45072,44854,45518,44745,13922,44869,17756,24412,44671,17848,18900,37057,18894,44858,14402,44853,9341,4686,18279,18185,44765,45277,32454,44674,18042,31354,28313,44764,44669,45042,18719,17771,44851,44884,45262,44531,13988,44848,24411,44894,44868,45515,19057,44767,6609,45421,8753,44766,13425,44837,18981,18427)
Unknown column 'np.person' in 'where clause'