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 (18900,28530,16935,3,17092,24412,17601,18794,18572,45286,17009,18996,44851,44745,36472,18185,18894,19057,16885,18648,30135,44866,45177,18353,24411,30986,17527,22509,44687,18172,44865,45262,18301,24438,6862,28313,44878,45346,17657,17755,18237,24441,5388,17335,13922,44671,44884,45515,44767,44856,32454,44768,17703,17114,17351,6782,34194,45567,14402,44766,3883,45229,13988,44835,44858,44894,18430,8753,19078,6875)
Unknown column 'np.person' in 'where clause'