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 (44640,17839,44531,45286,44669,17755,13922,8753,18688,3883,36472,17835,19078,44739,45561,18572,17278,14622,43800,44849,18042,28313,18996,45262,18427,18894,24441,44845,34194,44745,44868,44866,44835,17657,17351,17756,44689,32454,44870,24412,45515,44767,44671,5410,30986,30963,18652,17771,45277,4765,44853,22509,44685,17904,28530,3,18301,14402,5993,17009,44768,17556,17114,45516,18237,44878,17981,44861,18794,18185)
Unknown column 'np.person' in 'where clause'