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 (44687,43800,17904,18353,17114,44853,44689,45286,17278,45517,44866,44835,17755,13922,18430,19078,6782,5259,3,30135,13988,17835,44739,39676,18279,30963,18652,17981,18172,18427,30986,44711,44764,18981,44861,22509,6875,18042,14402,18794,45516,44873,18301,5993,19057,44765,44768,45346,18237,44865,3883,17556,45262,44858,45072,44845,44869,18719,18286,28313,45518,44863,4686,24411,17756,44837,45051,17657,24438,16935)
Unknown column 'np.person' in 'where clause'