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 (45229,44853,17771,43800,28313,45567,17981,44878,45042,17114,5388,44875,18279,18430,45262,13988,5993,44711,31354,44855,45286,17703,45180,6782,18996,44640,16885,24438,44768,13425,18894,17278,39676,17904,44762,44836,10402,18301,6875,17527,17756,17755,44671,44531,44835,44884,44869,44739,14402,44765,18446,18042,44669,22509,4686,19078,4765,44861,44775,6862,44856,44870,44674,45051,5410,18981,44865,24412,17492,5259)
Unknown column 'np.person' in 'where clause'