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 (18648,44745,44873,44671,17771,30986,44711,17703,16935,5410,44768,28313,17351,17237,6609,24438,44669,44865,14402,45042,44764,17756,44845,30963,44765,44762,6862,18172,17981,28530,44836,44884,5993,44866,16885,18427,18719,44640,18894,45286,13988,17848,5388,37267,17835,45561,44848,44767,18900,44878,18301,45515,44867,4686,24441,45421,10402,17114,44870,18279,44854,44766,18353,45051,44531,39676,18688,45262,45180,4765)
Unknown column 'np.person' in 'where clause'