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 (5410,24412,5388,14402,44863,44689,6782,44836,17114,17904,44865,34194,17092,18652,6862,28530,45517,17755,45072,18648,22509,45286,18894,18301,45042,44764,31354,18237,44854,10402,44873,36472,44767,45421,18286,17703,18042,17657,44848,24441,17335,17848,9341,44884,44762,44739,45043,4686,30135,18446,17835,17492,44861,3,45262,17771,44674,44851,19057,44687,18172,18650,44878,14622,45567,44856,45516,45229,30986,44853)
Unknown column 'np.person' in 'where clause'