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 (32454,44869,44875,18719,17114,30963,13922,17904,6875,18430,30135,17278,13,44868,44837,28313,18042,18894,5410,18237,6862,17835,19078,18648,18279,44867,44687,45518,45567,44853,45277,45346,6782,44884,37267,45515,16885,17703,44855,45051,45229,10402,28530,14402,17601,44845,5388,22509,37057,18650,8753,17527,44863,45517,18301,44767,44835,44775,24412,17009,44848,45043,31354,39676,34194,45286,19057,45072,18688,44861)
Unknown column 'np.person' in 'where clause'