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 (45051,18279,44863,6875,17835,45286,13,45517,45421,5993,44671,4765,44768,8753,13922,18301,45567,44868,10402,18572,45042,17527,18042,4686,44687,17848,34194,44873,44837,45262,9341,44685,17981,45515,17092,45177,18237,18446,30963,44531,5410,18652,3,44866,44858,14622,45561,18719,18650,44851,39676,44674,17703,44856,18286,6862,30986,16885,44869,44867,19078,24411,13425,44669,45072,13988,17904,44745,18996,30135)
Unknown column 'np.person' in 'where clause'