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 (17839,45567,18430,44866,44863,17556,17703,44767,6782,44836,31354,36472,14402,44875,24438,44531,44711,17755,17278,17657,44856,44849,44845,24411,45180,16885,44745,44689,45515,34194,45051,17835,19078,45043,6609,24441,18996,44685,18427,18900,44861,13922,32454,17009,44768,30135,17492,18794,44848,18572,13,44835,44873,18301,5993,44766,17114,6862,10402,45517,8753,28313,44878,45421,3,44765,19057,17351,45561,44894)
Unknown column 'np.person' in 'where clause'