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 (24438,24411,45177,18172,18719,17556,17771,17657,18279,18042,45072,44878,19057,43800,17981,30986,44767,8753,44868,45516,44894,44851,4686,45229,28313,18648,17848,44866,4765,36472,17009,17756,44835,45567,18237,45346,28530,44875,22509,14622,44739,44870,18688,44858,6782,17237,44531,17755,44867,10402,18446,16935,30963,5388,6875,44711,18301,18572,44766,45262,3,24412,45277,17839,6862,44848,18652,5259,17835,13)
Unknown column 'np.person' in 'where clause'