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 (44837,18172,45515,18648,17114,30963,6609,22509,44711,45277,45567,4765,44866,13425,44845,45180,5259,6862,3883,19057,28313,32454,24412,44768,45286,17092,24441,31354,17771,45043,17237,44849,3,8753,39676,5993,44765,17601,36472,44767,13,17351,43800,44687,45421,44669,44870,44869,45346,44858,44836,17755,5388,44865,44775,17009,18237,18688,17703,44878,45517,44867,10402,44861,44531,13922,17981,44745,45072,45051)
Unknown column 'np.person' in 'where clause'