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 (24411,24438,18427,45180,45515,9341,44866,44848,45042,44711,32454,18794,19078,18894,44878,18301,45229,44689,44640,44687,17848,17601,44858,45567,10402,5259,22509,17092,24441,45262,44765,45518,17278,17351,18981,17527,44674,18719,44894,14622,34194,18652,30963,44836,4765,17335,16885,18572,17114,14402,18430,39676,44875,44762,44863,5993,44873,17904,6875,3,17009,44739,28530,45072,45177,44767,37267,18286,17492,44745)
Unknown column 'np.person' in 'where clause'