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 (17703,5388,17848,18900,17335,19078,44845,44768,24411,17092,44767,19057,4686,16885,44861,17278,45042,44739,44856,45421,31354,18688,45567,17237,44531,32454,3883,24441,18652,30986,45262,24412,14622,44867,44685,44858,44878,45277,28530,18648,6862,18042,36472,39676,18427,45515,17904,44868,18430,17771,17839,17755,18286,17835,18353,44894,18894,44687,18172,17556,18572,17114,30963,17657,44865,45517,44775,18237,45516,13988)
Unknown column 'np.person' in 'where clause'