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 (13,44767,17335,44849,44878,17556,5993,44858,5259,39676,17756,17278,24441,45518,45515,44861,28313,18172,17835,44866,45561,13922,18446,45516,18353,4765,44863,44851,9341,43800,4686,17351,17771,44669,44739,44868,17527,6862,17114,19078,18648,44640,22509,6782,28530,30986,18572,18894,31354,44867,45421,17092,44870,8753,44869,18650,13988,44764,44835,44768,37267,45262,13425,45567,45051,18794,45072,44848,45180,44855)
Unknown column 'np.person' in 'where clause'