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 (30963,44837,6609,44853,45043,4686,3883,44865,45515,44884,44531,28530,17351,18042,8753,44689,18172,17278,44739,18279,9341,18301,44855,44685,17771,45051,18648,44894,44878,44765,44867,30986,44854,10402,37267,5259,44775,18427,44669,13425,18430,44868,45286,44766,44768,44875,14402,13988,31354,44849,18688,18185,44845,45561,44836,17755,24412,45277,44671,5993,17335,4765,17009,14622,16935,17756,18981,44640,17092,45567)
Unknown column 'np.person' in 'where clause'