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 (24412,44711,44851,16935,24441,44865,45072,18900,36472,44854,17527,18430,44875,44775,45421,44531,16885,44861,18446,44671,6782,17492,44836,18172,45516,30963,18042,18427,44837,18301,44687,5388,13,44853,18353,4765,45177,17771,45517,37057,44640,6609,14622,44768,6875,44849,30986,45042,44856,44868,18286,45051,45567,4686,18794,17904,44674,17839,45518,17848,45180,19057,45286,45346,44866,44884,34194,44762,18648,18894)
Unknown column 'np.person' in 'where clause'