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 (44767,44894,44765,30986,44689,18301,44674,45277,44836,18572,44868,44766,30135,18794,6782,13425,39676,44855,17904,16935,45516,28530,24412,44856,17755,14622,9341,37057,44711,44685,28313,45042,18688,4765,45180,17556,18894,45262,18652,44865,16885,14402,44870,31354,44775,45421,36472,17981,44687,44875,45043,5993,44845,17527,17009,44739,44531,30963,18650,18185,44745,44851,44640,17335,5259,17839,18237,45561,17492,18172)
Unknown column 'np.person' in 'where clause'