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 (44739,45561,13988,44745,34194,17756,18794,18237,36472,17278,44866,44867,45517,17092,45042,17556,17237,18648,18894,9341,44868,18652,18042,45051,24412,28530,18996,18900,5410,4686,44689,19078,44894,18185,17351,17771,22509,4765,45518,17703,18286,44674,44861,45567,17839,44685,45421,30986,44870,44858,45516,18279,44764,14402,31354,17657,44873,44884,44855,44711,6782,44869,5993,44775,44531,16885,44671,45072,13425,44687)
Unknown column 'np.person' in 'where clause'