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 (18648,44884,28313,18185,44870,18042,44849,44745,45517,17278,44669,17601,44640,6875,24411,17756,37267,17009,45072,24438,18719,44739,6609,45518,9341,16885,44854,44855,14622,44858,30986,39676,45229,44863,44866,17904,13922,45286,44875,18981,13425,44867,17092,44671,8753,18688,18279,18301,44765,14402,28530,44878,44766,18650,17703,13988,17839,44865,18900,31354,18794,44711,18894,18446,44894,44531,5410,44873,5259,44851)
Unknown column 'np.person' in 'where clause'