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 (13988,45180,17835,5388,44764,18042,17009,45516,17556,45051,14402,44863,45043,8753,24411,18237,18446,18427,16935,45072,45567,44836,44745,44855,17092,6782,3883,45518,24441,17703,10402,37057,17351,44894,4765,45421,44853,18279,44873,6862,44531,32454,18301,44669,18996,44851,17904,6875,45177,17657,45515,44845,44878,18652,44854,44768,24412,44766,44837,5410,31354,5993,44685,14622,44640,44689,3,17771,44711,39676)
Unknown column 'np.person' in 'where clause'