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 (44894,28313,18172,44865,24411,4686,45051,44768,13425,19078,17904,18279,17756,44745,45180,44853,18301,45515,18894,44766,13988,37057,17237,6862,44849,44669,17703,18042,44851,4765,17335,18900,31354,14622,14402,18794,17492,44875,44836,44869,22509,16885,44858,44884,17839,8753,30963,18430,44640,28530,19057,45561,44870,6782,44711,44837,18652,44867,45043,44878,44765,18981,44855,45177,45277,17278,44687,44762,24412,44689)
Unknown column 'np.person' in 'where clause'