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 (45518,45042,36472,44870,18279,9341,45517,44837,44855,45286,45180,14402,44687,45561,44854,18652,17237,18301,17848,18042,18430,4686,28313,45043,4765,22509,17527,17904,19057,18185,44764,3,44775,6875,39676,19078,17835,18172,24441,44867,17492,34194,44767,8753,17009,18719,13922,17351,18427,43800,5993,17556,16935,44711,44745,17756,6782,44766,3883,18353,44851,28530,17092,24411,45229,32454,44853,44531,24412,37267)
Unknown column 'np.person' in 'where clause'