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 (44745,44837,31354,44764,18430,17278,45286,44848,13988,5410,17351,45042,6782,44856,18996,44689,28313,45561,44845,44849,43800,18794,24412,18648,17114,44875,44835,17904,17839,45515,44870,17492,32454,5388,44671,16885,44873,44855,44765,44768,16935,8753,13425,17848,17009,44669,18286,18652,45567,18572,17703,30986,18688,45051,6862,44869,44836,39676,14402,44858,18719,37057,45518,17527,18279,45516,18185,9341,45177,44766)
Unknown column 'np.person' in 'where clause'