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 (44865,6875,18237,17556,5410,45515,45286,44836,44669,18185,17351,18688,45229,4765,44766,24441,44687,45561,44867,18996,24412,44711,6862,13988,17237,44869,44870,44531,32454,44640,18648,44845,5259,17755,18446,17092,44861,18172,45518,18301,44765,28530,13922,45072,30986,13425,44851,18353,4686,19078,5993,6782,44894,44837,45177,17839,17771,17335,44875,18427,45051,8753,44764,17114,3,30963,17981,24438,45277,17657)
Unknown column 'np.person' in 'where clause'