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 (14622,44685,17492,44869,24411,44669,14402,30963,44858,17556,44765,10402,18172,6862,18650,17756,44745,44845,18794,18996,44674,44855,44865,5410,45229,19057,44861,44848,17237,44849,18237,44878,45042,45346,44853,6782,39676,17114,17009,18719,18900,44866,44766,16885,44767,32454,18894,44687,13,17755,45262,18279,44836,17904,45517,44775,3883,17703,44689,18652,18427,45286,13988,17092,13922,18981,18353,44768,5993,28530)
Unknown column 'np.person' in 'where clause'