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 (18353,45229,44531,24441,44878,13,17278,45051,31354,18172,44739,44745,45043,44765,18301,8753,17771,44875,44674,44711,17904,44869,44884,44775,17492,17601,44858,44849,18572,17335,44867,44866,17657,44762,5410,13425,18894,17092,36472,37267,3883,16935,28530,45567,5388,24438,14402,30986,45561,18794,44853,17237,13922,18237,44766,44764,44868,18430,10402,45262,17114,43800,14622,45072,6862,45177,44767,6782,3,44687)
Unknown column 'np.person' in 'where clause'