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 (16885,5388,44878,30986,28530,18042,18794,18650,6609,18286,18185,4686,24411,6782,45346,44848,13,17556,45567,43800,44854,18688,44837,31354,44687,18301,17527,17755,17492,39676,3883,45515,45042,22509,18572,24438,44766,45277,44765,24441,37267,45421,3,44768,9341,44873,18446,44669,44853,44671,34194,17237,17756,18237,44764,45177,18172,17009,44858,45262,44894,17904,24412,45051,17839,45518,13988,13425,44739,18652)
Unknown column 'np.person' in 'where clause'