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 (5388,17755,8753,18185,13922,17092,17278,45518,6782,44856,44853,43800,14402,9341,44745,18286,45177,44837,18650,19057,17835,45180,44875,37267,17335,16935,10402,45515,44845,44640,44764,18900,44861,24412,44894,44855,3,44854,17527,44766,32454,18996,19078,24411,6609,44711,44687,18353,44768,44851,45567,18648,45516,28313,45262,24441,30986,17657,18172,22509,17237,44775,44873,45043,14622,45072,18981,17756,39676,37057)
Unknown column 'np.person' in 'where clause'