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 (44865,34194,5259,18900,18648,44851,44858,44848,37057,44849,44711,45180,44878,44768,17492,28530,44855,9341,45346,19078,44837,17839,45286,19057,18430,17755,44745,44689,44870,36472,5993,44884,18427,10402,44863,6609,17114,18688,45421,44762,18981,44764,24441,17657,45277,18719,17527,18185,30963,44531,16935,17904,44775,44873,44868,6862,18446,18237,14402,44766,44669,3,32454,6782,45051,18042,8753,17703,13,14622)
Unknown column 'np.person' in 'where clause'