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 (44865,17335,31354,44873,45561,5259,17839,4765,44870,37267,45517,44674,44767,17904,13425,45518,18237,4686,13988,16935,28530,17237,44671,5388,17556,44866,36472,44739,44768,13,44856,45515,18650,17771,30986,17703,45262,45346,44762,44711,44861,17981,45421,19078,44858,44867,44669,5410,24411,17278,32454,45042,6862,17756,18900,30135,44837,44849,44745,44685,18430,45229,18172,43800,18446,45051,17848,24412,45286,18996)
Unknown column 'np.person' in 'where clause'