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 (5388,5993,14402,14622,17278,44858,44855,45421,43800,31354,45518,45262,45346,44689,17657,18172,19057,44851,44856,17601,10402,45516,18427,17771,17755,44845,44867,44775,44531,44866,17237,17092,5410,18301,44835,18446,32454,6609,45229,44868,18286,44884,17904,17527,17556,6862,13988,18279,44854,24412,17981,18900,44878,44762,45072,24411,45177,44836,44685,17839,45567,44768,34194,17848,45286,28530,18794,3,18353,18185)
Unknown column 'np.person' in 'where clause'