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 (3,39676,17351,45516,5993,19078,44764,31354,44674,44853,34194,45421,5259,24411,44884,17335,45515,44855,44689,45517,44762,14622,17755,13,17981,24441,44870,45051,37267,45180,17278,17835,16935,44745,18794,45229,22509,18172,18996,17601,17657,18648,44845,18900,44873,44739,44866,44531,8753,17556,44767,17237,44856,32454,30963,14402,18301,44640,44868,17756,44768,6609,4686,44848,45567,44867,45286,24438,44671,6875)
Unknown column 'np.person' in 'where clause'