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 (44765,17756,4765,44870,10402,6862,44837,18042,5410,24411,17009,45346,24438,18353,24441,6875,32454,44531,44848,17835,30963,18430,45043,22509,43800,44854,44835,24412,44894,17556,44884,18900,18286,45177,18301,44640,45262,19057,31354,44856,44851,18648,16885,44866,44689,13,44775,44745,16935,45277,44875,45180,19078,44687,17527,17703,9341,17237,44873,14622,13922,18572,18172,45515,44767,45042,18650,44861,3883,44868)
Unknown column 'np.person' in 'where clause'