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 (17657,9341,44669,19057,44745,16885,17981,18688,17237,17756,44869,44711,45517,44766,44764,45515,44858,44768,39676,17556,18430,14622,17527,45177,37057,17755,44762,6862,44878,44775,18981,44866,44674,44875,17848,17703,13922,44671,45277,44531,44640,18648,44845,17601,45518,18237,45229,45043,44739,24441,6782,24438,44894,16935,30986,45421,37267,45072,44861,5388,45286,44867,44870,13988,28313,44868,17092,28530,17904,5259)
Unknown column 'np.person' in 'where clause'