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 (44640,44711,17092,44835,18427,22509,5388,31354,17848,6875,45051,44531,44849,18648,9341,45516,18279,17114,8753,45518,36472,44671,17278,4686,44766,17835,37057,45277,18185,17556,44866,44745,24441,44858,18900,6782,18353,45043,18286,44689,44853,44856,6862,44894,44868,43800,45180,17601,13425,17756,45561,18794,18996,45517,14622,44767,16935,3883,24411,44870,19057,10402,3,17839,45072,34194,44884,17237,39676,44855)
Unknown column 'np.person' in 'where clause'