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 (44861,18446,5993,45516,44687,18237,24412,14622,17703,17601,3883,45286,44745,18301,28530,45043,44765,18648,44640,45277,44768,44855,17848,17009,44868,18279,18172,45177,17904,6609,18900,22509,39676,44878,18652,30986,18719,37267,44689,44775,14402,44674,44863,45515,30963,17278,44858,18572,4765,44851,6782,16885,45229,28313,18981,18042,44845,19078,13988,44837,17092,9341,44835,31354,44854,6862,34194,44848,17114,3)
Unknown column 'np.person' in 'where clause'