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 (17771,44685,17703,18719,17756,45177,17351,14622,44875,6862,19078,30963,45042,22509,18430,45518,45072,5410,44837,44762,18981,45346,17492,37267,44865,44674,18172,44836,18042,44863,18353,45567,18286,44856,34194,13,44711,44848,45262,44764,4686,17114,18794,5993,31354,17527,44868,24438,44835,44867,28530,45277,17904,3,18572,45516,44640,44884,18996,44851,44531,17981,44767,18894,4765,17278,45051,16935,44745,44739)
Unknown column 'np.person' in 'where clause'