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 (44745,44878,13,44836,44873,45515,44764,18353,44866,13425,45051,44861,44856,18042,44865,45042,44837,17527,13988,22509,44870,18301,45516,6862,17278,18719,16885,45180,44855,24438,45043,18279,44640,45518,17351,32454,17703,45517,44858,43800,39676,24441,6609,44766,24411,45346,44689,4686,17904,18894,44835,17839,18981,37057,45229,36472,45277,45421,28313,14622,3,17848,9341,18996,44711,24412,44687,18900,18427,17657)
Unknown column 'np.person' in 'where clause'