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 (17114,44851,16935,44531,44848,45567,5993,45286,45346,18353,17092,24441,13425,3883,44853,18688,44775,9341,18894,45177,44767,31354,45277,17755,18652,44870,17657,45518,18648,45072,18430,45043,17009,45229,14402,18996,28313,18042,44685,4686,39676,30135,44764,17492,45515,18650,18237,44845,17848,17237,44687,17278,13988,44861,5388,45262,44674,17556,44849,32454,24411,18572,18185,24412,45517,30986,17771,4765,10402,44884)
Unknown column 'np.person' in 'where clause'