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 (44687,45346,45177,44762,13922,17657,16885,45277,6609,30135,44878,44531,44854,17492,44866,17904,44768,44775,44884,18185,44845,18237,5410,44685,17601,45567,18301,9341,17835,44863,18900,17848,36472,44894,17092,17756,45518,44835,18981,44849,44865,18794,18572,44856,44867,28313,18172,16935,24411,17755,37267,44875,39676,5993,19057,34194,32454,10402,17527,44870,14622,44848,44745,37057,45051,28530,13425,44837,18648,6862)
Unknown column 'np.person' in 'where clause'