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 (13988,45286,18996,17492,18430,44894,18427,44837,44531,45515,34194,44863,45561,32454,18279,17839,43800,44669,44855,18446,16935,18172,17703,44836,17237,5388,17835,45262,44854,45072,17657,30986,44866,44845,31354,44851,5410,44873,6862,30963,44868,44671,14402,18042,17114,17756,18286,45042,17771,18981,17527,17351,45043,6609,44875,44767,8753,17092,44858,44739,14622,44856,17904,39676,44848,44764,17755,19078,45346,44640)
Unknown column 'np.person' in 'where clause'