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 (43800,44674,44685,31354,17657,14402,6862,17492,19078,44711,24411,17601,17556,10402,44863,24412,44851,5259,17009,18172,44766,19057,18981,45180,18430,45518,45042,24441,18286,44745,17756,30963,36472,44669,17755,30986,44836,45262,13988,3,18353,45229,3883,44764,44775,5388,30135,18794,44873,44861,44855,44837,5410,44768,6875,44866,45516,37267,45517,18237,17114,17981,34194,17904,44671,5993,44853,44640,44767,18648)
Unknown column 'np.person' in 'where clause'