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 (44687,45286,44861,24441,18688,18427,18648,45051,19057,44764,17904,44767,6782,18301,44849,18042,44853,5388,45567,44867,45515,45516,17278,19078,44669,43800,44835,44671,18172,17848,14402,17556,13922,18430,44711,28530,17771,4686,44884,3,18652,44775,6609,4765,22509,18981,17351,45517,44875,44870,44869,17755,17114,44845,44868,44739,10402,45177,45229,44531,13,18237,18446,44848,8753,31354,17657,17835,44685,30135)
Unknown column 'np.person' in 'where clause'