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 (44836,44835,13988,44685,5259,18042,44863,18430,5993,45561,18719,44869,45229,18981,44861,44775,17114,18286,18353,17703,44870,18185,44853,3883,18900,17904,17657,45516,44669,45072,45277,44854,44687,10402,45421,32454,45042,6609,17278,44764,30135,18446,5388,4686,44739,44837,44845,17835,34194,14622,17335,24412,45177,17009,6875,44765,44878,37057,18650,17848,18648,44671,28313,17839,45518,17527,44848,44868,44856,18237)
Unknown column 'np.person' in 'where clause'