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 (18572,17351,30963,18996,18446,18430,17092,44884,44745,44685,24411,18650,24438,17492,3883,17556,44766,45421,18286,18042,17755,44894,44868,44858,17114,18894,13425,14622,19078,13,44531,17848,44851,16935,45177,17657,13922,44856,5410,19057,5388,37267,18900,36472,6782,44848,17335,44837,18719,17771,45516,45517,18794,9341,18648,31354,44878,30986,45042,6862,18185,18172,45262,14402,18237,44873,44689,44687,44861,17009)
Unknown column 'np.person' in 'where clause'