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 (45515,30986,17335,28530,17755,17839,9341,14622,45229,18650,45262,44640,6782,6609,30963,31354,44865,44767,45516,44855,18652,45561,44711,6875,24438,18794,45072,18900,32454,44854,24441,17009,18185,13,45043,18894,18172,22509,17114,18237,16935,36472,44762,4765,44866,17904,5993,44853,4686,44870,44858,8753,45346,44836,44685,44873,18648,6862,44775,17657,24412,44845,17601,18446,30135,5259,44739,17981,13425,39676)
Unknown column 'np.person' in 'where clause'