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 (45180,18353,17556,18427,44685,17981,45072,17351,44884,44854,45516,17756,44873,13922,44765,17335,44671,13425,5993,39676,9341,18185,45518,44894,28313,44669,44853,5388,44835,37267,5259,28530,19057,45517,16935,18652,44531,6609,44869,44767,14622,17527,45262,8753,18794,17237,17601,18572,44674,17657,18286,44870,18042,17835,44775,30135,44837,37057,17848,30986,18688,44868,4686,44687,44849,22509,44762,6782,19078,18237)
Unknown column 'np.person' in 'where clause'