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 (18427,45072,44865,44866,44894,44835,13988,18900,17092,44739,24441,44674,44767,5388,3883,45286,45042,45421,17703,44765,44878,44775,14402,37057,9341,19057,17009,44861,32454,17755,18286,44671,24438,44855,44875,45517,22509,44669,45177,44766,5993,44849,18996,17981,18648,18353,17771,17835,18172,45051,17601,44711,28530,17904,17657,30986,44745,19078,13425,44856,39676,8753,18894,44868,13922,17492,18981,44764,18430,16885)
Unknown column 'np.person' in 'where clause'