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 (17492,5388,6609,28530,5410,17839,45517,18353,5259,18237,17904,18794,44762,44866,44764,17556,44867,44685,18286,34194,17601,44851,45567,13922,17092,44765,6875,44865,18650,19057,6782,44711,4765,45177,30963,16885,44531,18648,45042,43800,45516,44868,45346,17351,45561,18446,30986,44671,44869,18894,45518,3883,17835,13,17278,45043,17009,13988,16935,18996,45286,6862,45051,45515,44878,44640,45072,44767,44861,18185)
Unknown column 'np.person' in 'where clause'