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 (18286,44689,18650,16885,44867,31354,17835,18042,45043,18430,19057,18996,17278,45051,44775,45277,45042,44863,17756,18279,34194,44764,32454,13988,17092,28313,45561,44851,44687,13922,45421,45286,44869,44745,18185,44837,17351,44835,37267,44711,44894,18794,44765,4686,13,18900,17492,17009,18648,44848,17703,44685,17527,18427,10402,44865,24441,6875,44836,17839,45518,44856,44845,45262,24412,3883,45072,44884,28530,18719)
Unknown column 'np.person' in 'where clause'