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 (44861,44863,39676,45051,18648,44869,22509,18185,44865,13425,44640,8753,18996,17835,18446,44689,44711,6862,6875,44837,45346,45229,44855,18427,44884,17755,17904,44868,18286,18719,18430,45180,44739,4686,44845,17114,18650,44674,17839,44764,18301,44768,44766,43800,44867,17092,17351,32454,17848,45262,44873,45518,44685,3,45277,30963,4765,44875,24411,44687,18172,18279,45177,5410,14622,44531,17278,17601,17756,5259)
Unknown column 'np.person' in 'where clause'