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 (17237,44685,17755,44671,44855,18353,18430,14402,22509,45051,19057,16935,30963,8753,44768,18042,45072,44836,44837,17771,44849,28530,18185,44687,18900,18286,45177,17839,3883,44775,24412,6875,45515,18981,17009,18446,18572,18237,44861,44765,44868,17492,17556,5410,18996,44766,45517,44884,45286,44764,17114,16885,13,6609,17601,17835,3,44640,14622,44762,43800,4765,45229,45043,10402,44870,17351,13988,17756,17527)
Unknown column 'np.person' in 'where clause'