Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45180,17092,6609,18430,34194,19057,17755,45051,44867,44848,44865,24441,18650,8753,14622,3,9341,45262,37057,45567,6862,44869,22509,10402,44768,44765,44689,17848,17756,18719,24412,44878,28530,18286,44853,44861,14402,18894,32454,3883,13425,5993,17527,44745,18652,24411,30963,44884,44870,18427,44767,44766,39676,45286,37267,28313,18237,4765,18042,43800,45177,44837,44762,5410,17278,17839,44851,17351,45517,44674)
Unknown column 'np.person' in 'where clause'