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 (13922,17904,17092,6875,34194,24411,44765,44870,5388,44671,44836,13,14402,44848,13425,37267,44866,17527,44855,39676,4686,18172,5993,44775,17114,24441,44845,44868,45518,18981,44766,44869,4765,18286,31354,17848,37057,18572,45072,45516,44854,18996,18279,18042,22509,17351,44674,32454,45229,44764,44685,30963,44739,18427,6782,17657,10402,17278,17335,44745,18446,44711,30986,45177,17601,44884,44894,17009,44669,45051)
Unknown column 'np.person' in 'where clause'