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 (10402,44835,17092,44762,44848,18279,4686,44711,17351,44870,17237,19057,44671,17904,45051,3883,18894,45516,18900,45043,44873,44866,24411,18301,45229,44768,28530,44853,17278,30986,31354,5259,18185,44836,45042,18652,6862,34194,44685,44858,44875,44837,45421,18042,37057,45262,6782,45515,6875,18650,22509,13988,44765,44687,17703,36472,18430,17756,18353,45286,45561,17556,17601,5993,16885,18286,18648,17657,18446,24412)
Unknown column 'np.person' in 'where clause'