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 (44856,18427,44845,44775,44674,17092,17009,18301,28530,17981,44875,44873,30986,44764,6875,5259,44861,45177,44854,44878,18688,44853,19078,17601,45517,45518,36472,44765,44855,45042,44745,30963,44858,4686,18648,18719,37057,22509,44869,17771,13988,44711,45421,18652,45515,18900,17492,16885,8753,45567,6862,44762,17756,18981,44531,17835,31354,14402,6609,9341,18572,44685,18650,5410,17848,32454,45180,10402,17839,44851)
Unknown column 'np.person' in 'where clause'