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 (32454,44689,44766,5410,44845,45042,44854,45517,44875,17335,4686,18446,17492,18279,44851,14402,44865,17114,44855,18650,6782,44837,44869,17848,17601,17904,44863,18981,44836,22509,44848,18648,44669,45516,44671,17755,16935,44866,44884,24438,44894,18286,6875,44764,6862,8753,18237,34194,18185,17278,17756,18894,18430,17351,17556,18652,44674,24412,3,30963,18996,14622,28313,44835,44687,45262,18688,44878,28530,44768)
Unknown column 'np.person' in 'where clause'