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 (17756,45516,6609,44674,45051,30963,45518,44671,37057,17839,17556,30986,3,44762,44848,5388,44836,45229,34194,44870,45072,18996,18172,16935,18446,28313,44869,18794,18301,18688,17601,17981,39676,13425,44745,45515,6875,18894,17771,36472,44845,17114,45567,3883,14402,44775,44867,17278,44711,28530,45561,44866,44765,45177,44854,44856,44863,18185,18650,17848,44875,18237,44837,44878,18279,44865,44861,44687,44858,44835)
Unknown column 'np.person' in 'where clause'