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 (13988,45072,18279,19078,44671,17278,13425,18648,8753,44845,44674,3883,6782,18650,30135,36472,45517,45421,18286,17335,45277,45567,17904,17848,18572,28313,17092,18353,44878,45561,44685,44687,18981,44853,44854,18301,24412,44669,4686,17756,22509,45042,44848,44767,19057,45515,14622,5259,45516,3,44837,6862,30963,44869,45286,44884,18172,4765,17527,44861,18237,45262,5388,6609,37267,44867,17657,17114,17492,24441)
Unknown column 'np.person' in 'where clause'