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 (18042,45567,44671,9341,45515,18237,18996,37267,45516,17527,17756,3,45072,19057,18185,44866,45180,44685,18650,4765,44858,28313,17755,18172,5993,17351,17278,45421,24411,44867,6862,44765,44869,18719,44768,18981,44878,44845,19078,37057,45042,16885,43800,45051,8753,45517,5410,18688,14622,45177,17904,44745,18900,13922,17009,44687,44854,44884,17114,44865,45286,24412,18572,44848,17492,45518,22509,30963,44873,44531)
Unknown column 'np.person' in 'where clause'