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 (45177,44836,18794,17527,44894,6875,18279,17904,45042,14402,44745,6782,44869,44878,44866,17848,18652,28530,45517,45516,18185,45180,44873,37267,44884,44849,14622,44765,44764,24412,19057,34194,44856,17492,17351,17755,8753,44858,44855,17756,17839,44762,45561,44671,17771,17237,45421,17601,4765,16935,44766,22509,10402,44868,45043,30963,18900,17657,18894,19078,5388,6609,44775,31354,18427,45262,44848,44865,9341,45567)
Unknown column 'np.person' in 'where clause'