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 (45561,45180,44768,32454,44845,45286,44745,44775,44866,18900,45346,45177,18446,18301,19057,44865,45043,17839,44873,17092,44640,17114,44531,18652,8753,44765,45042,4765,17657,28530,44689,45421,31354,22509,45051,18172,17848,45517,13988,44836,45515,5388,24412,44851,39676,24411,18894,16935,17771,17492,44687,17904,17278,45262,18794,28313,44884,6875,17009,9341,18042,45277,45567,17981,18427,18688,10402,6609,18430,13922)
Unknown column 'np.person' in 'where clause'