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 (45043,5259,19078,17835,44531,44640,17904,44856,44873,44845,39676,44848,17755,36472,4765,13425,45177,18794,44863,44870,5410,44851,6862,17527,30135,18652,18650,17092,44768,45515,24441,4686,13988,17351,18900,17848,17237,44866,44764,18279,30963,44858,45561,14622,6875,28530,17335,24438,45262,17114,18446,45516,44835,14402,17657,45072,28313,18648,17703,18042,44878,44745,44669,8753,17009,19057,44687,17278,44775,22509)
Unknown column 'np.person' in 'where clause'