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 (45561,44863,45516,8753,44868,44687,44866,14622,17771,44711,17009,18042,30986,18446,44851,44685,45072,45517,44856,16885,13988,45421,17657,45346,19057,18648,17556,19078,44865,18353,5259,6609,18996,45177,13425,44671,17703,44884,18981,4686,32454,44861,16935,13922,6782,18237,24411,44878,6875,44689,44870,10402,44858,44849,17839,17848,17351,3883,45229,4765,37267,45286,17835,18172,44867,18279,44854,18719,3,37057)
Unknown column 'np.person' in 'where clause'