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 (18996,24441,3,16935,44869,18279,45561,39676,44687,43800,44848,30986,18572,44866,45180,17114,45517,44861,13988,44858,17848,18301,8753,17351,44845,5259,44768,44764,44837,30963,45567,45515,17835,6862,6875,44849,17771,17657,34194,30135,44856,5410,5993,17755,18286,18688,44836,44689,18719,32454,18172,14402,44868,44531,17981,44894,18353,17009,44669,19057,45042,45262,18981,17092,28313,18237,44878,44711,44875,45277)
Unknown column 'np.person' in 'where clause'