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 (4765,3883,17771,22509,6862,45561,18688,6609,18430,24412,44884,17009,44875,28530,18172,34194,16935,44894,45229,17114,45421,45180,44775,4686,6875,45516,18794,19057,44674,32454,44671,24441,44849,44870,44855,44711,17756,18301,17351,44689,44863,13425,45517,18279,16885,44762,36472,44685,44861,17492,18572,44768,44745,28313,31354,13,45518,24438,14402,17278,18648,44739,18719,45072,44851,18981,8753,44866,45277,17904)
Unknown column 'np.person' in 'where clause'