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,18894,44849,45042,44531,17237,24441,5410,45043,17904,44764,44765,16885,17351,44640,39676,17981,44766,30986,6875,44855,45561,17755,44687,18301,24411,45051,18648,17009,17756,44869,18446,45262,18286,17835,45567,17556,18719,44853,28530,44768,18185,44878,44671,44868,44685,44739,10402,18279,30963,44865,45277,44870,17527,17278,45229,18430,19057,16935,44835,43800,18237,44689,17771,45516,44762,44867,44884,44848,44837)
Unknown column 'np.person' in 'where clause'