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 (17904,45229,45177,44531,18427,24412,3,13988,16885,44873,18996,44868,43800,28530,18301,18981,17835,30986,6782,5259,44711,18900,45421,14622,19078,44671,45518,18172,17839,22509,4686,18648,17492,18430,31354,45517,5993,44894,17848,44836,44869,44878,17237,45043,44865,44835,13425,45346,18279,37057,44856,17657,17755,18353,44745,18446,5388,37267,32454,17351,17703,44764,44845,45286,17771,17601,44858,45042,44775,14402)
Unknown column 'np.person' in 'where clause'