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 (13425,17703,44870,44875,44671,44739,44878,45229,18650,5259,44531,45262,44851,4765,17492,17351,18042,18185,6875,18446,13988,18652,44837,45517,14622,44766,17755,8753,45051,44873,30986,6782,18286,13922,18430,31354,45516,10402,3883,44855,44765,16935,3,17527,44767,16885,45177,5410,44856,44674,32454,44775,44687,45346,18894,30135,44845,17278,44764,43800,17556,18353,17835,18237,18172,17771,24441,24412,44865,17981)
Unknown column 'np.person' in 'where clause'