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 (45072,44853,17771,18430,44873,44739,30963,17527,17601,17278,18996,17556,28530,45518,17904,14402,6875,17114,18286,44689,17755,6782,45262,44851,24438,6609,18446,44836,17981,13988,18172,45517,17092,45286,18981,17009,44894,45042,44856,44775,45180,44868,44865,3,13,37267,18237,44866,24441,18650,5388,18688,44745,5259,16935,18572,30135,17848,44687,44765,44861,44671,17839,4765,36472,18652,44869,13922,30986,18185)
Unknown column 'np.person' in 'where clause'