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 (17755,44669,6875,4765,44711,18719,32454,45346,31354,44745,10402,45072,17771,44765,18430,6862,17556,44870,17981,16885,45518,18688,44878,24441,17657,44855,44531,44671,43800,9341,17835,6609,45262,34194,4686,44861,44837,19057,13922,44866,44875,44884,5388,45561,45516,37267,44640,24438,17527,5259,45515,17492,17335,28530,18981,18353,17009,17839,44845,45517,39676,14402,45277,18900,45051,30135,45421,30986,6782,44863)
Unknown column 'np.person' in 'where clause'