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 (22509,44531,45051,44766,45177,18652,18279,32454,44878,18688,44875,31354,37057,13922,18894,44767,30986,17351,45517,45518,45516,45229,6782,14402,44764,44836,44858,18286,3,45421,17835,4765,19057,24411,44868,44873,16885,5259,18446,17114,45277,24438,18237,44884,17009,18981,18650,45043,44837,19078,17278,44768,44687,45567,18172,45042,18719,44739,36472,44845,28530,17904,17335,18353,44689,17237,44894,44745,17657,18042)
Unknown column 'np.person' in 'where clause'