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 (24441,18353,17848,17237,17657,45517,44868,17835,45042,4686,8753,17492,44745,18430,28313,17771,24411,44884,44848,17527,18042,17904,6862,44853,44671,37057,18688,17601,18279,45516,45177,5388,45567,45561,44767,45051,44766,44875,44711,45346,17278,44858,45286,9341,31354,45043,18286,44869,18900,30986,44768,44674,18894,16885,37267,13425,17756,44894,44764,45180,18237,44685,24438,44855,44775,28530,13,30963,19078,44669)
Unknown column 'np.person' in 'where clause'