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 (44868,37057,44775,17114,17351,13425,44858,45042,44669,44764,18427,18981,44856,8753,24411,28530,18688,17755,18172,44867,18719,30986,17839,18648,45180,13922,17601,45346,44762,44531,9341,13,44854,6862,30963,18042,28313,45072,18185,5993,17556,45277,5410,44837,45286,44836,18650,18446,44875,19078,18301,44767,18996,44851,17657,44865,44739,45561,36472,31354,18286,32454,44884,16935,44687,44861,44853,44768,44869,17703)
Unknown column 'np.person' in 'where clause'