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 (30986,44685,45262,17835,6782,13988,5993,4765,18279,44687,30963,18172,18794,44865,17527,14402,18719,34194,44836,44674,17657,45517,45346,44878,44766,6875,13922,17114,37267,44845,18648,45072,24438,17981,8753,44849,44854,17237,17278,17335,19078,17755,19057,44775,18427,44762,14622,44767,45561,32454,44765,17009,5259,44866,44868,44873,18237,17771,45567,18430,44875,5410,45518,45515,18688,44745,24441,17601,18900,45177)
Unknown column 'np.person' in 'where clause'