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 (17657,18172,13988,44894,44674,17601,3,18688,9341,18648,45421,44762,18900,10402,17237,18279,44863,34194,44766,44849,44764,17335,44836,18652,6609,45180,45043,44870,44854,45517,44848,24412,18185,36472,18237,18794,14622,44875,44669,18427,4765,31354,37057,17278,17755,44531,13922,18996,37267,45177,22509,44745,44853,18650,6862,43800,44767,39676,44884,44858,17835,8753,16935,44878,44775,44868,45567,45561,45042,44765)
Unknown column 'np.person' in 'where clause'