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 (3883,45561,45516,45517,24412,45421,45567,39676,44868,13988,14622,17527,18286,28313,19057,45072,44878,44855,10402,44863,37267,4765,17351,44640,45277,18894,44848,13922,6782,17556,17756,8753,45051,18042,44835,34194,45518,44854,45180,44765,45286,18981,17092,17703,24411,14402,44687,44745,44766,17981,44711,24441,18301,43800,16885,18900,5388,32454,44858,31354,44685,44531,44869,44836,44849,18427,18185,45262,45229,17114)
Unknown column 'np.person' in 'where clause'