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 (45072,17756,45043,17835,18172,13425,18042,44768,9341,45516,18648,3,19057,44762,18652,14402,18279,17601,17009,30986,43800,45421,6609,18237,17904,45277,44867,44848,24412,6782,44856,45515,44849,44835,17556,44854,18353,14622,17278,44671,44669,44764,24441,45567,18301,45051,24438,36472,44745,45286,22509,18900,4686,45518,34194,37057,6875,17114,18430,44868,44894,44870,6862,32454,44853,17351,44866,10402,13922,44863)
Unknown column 'np.person' in 'where clause'