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 (13988,17848,44674,24441,44768,44669,32454,45517,18042,18688,17278,44873,18427,17756,19057,44766,44845,44671,45043,14402,9341,10402,28313,18996,13,45277,45262,44894,4765,17009,44640,5410,18719,19078,44866,18286,45180,45051,44849,13425,17351,44853,16935,8753,45286,43800,18794,44851,18648,6862,44867,13922,5388,44865,44884,44878,30963,18237,17839,44775,17703,36472,44745,18894,17335,17981,18172,44689,44764,44854)
Unknown column 'np.person' in 'where clause'