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 (44878,24412,18427,44848,44669,44768,13922,30986,17981,44767,19078,44866,22509,18900,18648,18172,17904,18042,45516,10402,17527,44836,18652,24441,18237,18301,18353,17848,9341,17755,44873,8753,17835,17351,44884,44853,45517,14622,18794,44640,44764,32454,44868,45421,16935,24411,17601,44854,45177,6782,31354,6875,14402,18894,45277,44711,45515,44674,17278,44685,44687,30135,45561,45180,17657,18996,18650,44861,3,4765)
Unknown column 'np.person' in 'where clause'