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 (45262,8753,17601,5993,14402,28530,45180,18900,17278,18719,44765,45421,17756,44865,16885,18648,44855,18286,31354,3883,30986,44687,17839,17755,44884,44689,45567,45517,18652,18042,17351,45277,44869,44849,44685,44851,18894,18185,44674,44762,44873,19078,44836,44711,17009,44853,44669,34194,44867,44863,13425,17771,18301,44671,28313,5388,16935,44866,13922,44739,17703,13988,44868,18446,39676,18353,44775,24441,24412,6875)
Unknown column 'np.person' in 'where clause'