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 (44775,17703,44745,44875,45515,44764,44894,44884,43800,18794,6875,24441,30135,44870,45561,16935,10402,44868,17009,16885,17492,18572,44866,14402,19057,44853,18894,17556,45072,18430,30963,17092,24411,37057,17771,44689,45177,36472,22509,3883,17278,44856,13922,28313,18301,44848,44867,44685,18688,45043,44762,45051,45180,44765,44711,39676,45042,45567,19078,18172,18981,44873,5993,13425,18427,17904,44865,5410,28530,17756)
Unknown column 'np.person' in 'where clause'