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 (45421,17835,18430,17114,45180,44873,13425,17657,13,45262,24412,18353,44768,18279,24441,19057,44884,18648,44837,44855,45072,44745,45517,18688,17771,45346,18794,4686,44869,45286,18996,44853,16885,45043,30963,18900,32454,31354,28313,5259,45518,44875,14622,44836,3,44711,24438,36472,5388,17092,44870,44865,30986,17839,14402,18981,44851,44640,44894,13922,18894,17527,44765,45042,18172,17278,44775,28530,30135,9341)
Unknown column 'np.person' in 'where clause'