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 (45517,44866,44854,44711,18652,18237,9341,17092,18301,13,17756,44739,8753,4686,44873,18719,13988,18353,28530,44848,17848,17335,18688,44745,10402,45262,18648,18446,3,18430,45346,17351,44835,44768,44674,18900,17839,45516,13425,6782,45286,45567,31354,44685,17114,44775,17981,18172,17771,37267,14622,45180,44858,4765,45229,17492,18042,24411,44687,6862,19078,32454,37057,45043,44837,45072,45561,17904,45042,44863)
Unknown column 'np.person' in 'where clause'