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 (17904,24412,44854,44531,44861,18719,17335,17771,45229,24411,30963,3883,43800,4765,18286,18427,16935,17981,18172,44685,44873,18688,9341,17703,17839,18652,22509,45518,36472,17278,44689,44745,17527,5388,44855,31354,44856,18042,32454,5993,5410,44835,44640,45286,44845,44851,37267,44894,44765,4686,45561,18794,17092,45517,18237,45042,24441,18650,45515,45262,45180,44865,17835,18900,18446,10402,17114,39676,44766,44866)
Unknown column 'np.person' in 'where clause'