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,18172,18572,45072,45518,17556,44894,44878,44689,13922,22509,44869,18996,34194,44845,44855,44858,44685,14622,44873,44765,6609,44884,44868,17657,5388,44856,18794,44861,44767,3,18042,45515,17335,16885,17009,3883,17527,44640,44531,18185,19078,44764,17492,17114,45567,44865,39676,18981,36472,18301,14402,18237,45229,17092,32454,18279,13988,19057,17981,18719,17351,45043,18688,45286,44836,9341,45262,17601,28530)
Unknown column 'np.person' in 'where clause'