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 (8753,37267,44858,44854,44671,45518,17835,10402,45262,44865,44855,34194,45072,36472,44849,17237,44739,18279,44863,45180,18981,32454,5259,44861,44531,44837,44685,44869,44868,44711,6609,45286,18042,44867,44873,17839,18894,13988,14402,44640,18427,14622,6782,39676,44884,5993,44875,4765,30135,17278,16885,44836,18652,43800,17981,17492,9341,31354,6875,19057,44765,18900,17351,17601,45567,44848,18719,17904,18237,18446)
Unknown column 'np.person' in 'where clause'