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 (17703,18981,18652,44878,44674,45042,44853,24438,44768,44767,18301,17351,44856,44867,44775,17835,17657,17527,17556,16935,32454,17492,13425,44687,45517,5993,28530,45421,17092,18648,44685,34194,45177,18237,44669,18572,4686,45561,18688,14622,17009,17755,5388,18794,44835,19057,17756,17904,6609,44762,18427,44858,5259,37057,39676,17335,18279,44837,30986,44854,44894,28313,44868,44689,17278,17981,24412,13988,18042,44863)
Unknown column 'np.person' in 'where clause'