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 (5388,45561,45567,18185,18427,24411,45518,22509,45515,18353,10402,17657,45180,19057,17351,4686,18688,44739,44687,45229,30986,18572,44854,36472,44884,44640,14402,17839,28313,44851,17556,18237,45177,18996,39676,18301,44711,44671,44894,13988,45043,45072,44863,44849,28530,44869,17771,45517,13425,44835,24438,44762,30963,8753,18430,44853,17981,44845,44836,17835,45421,18286,44875,44867,44531,37057,18652,45042,5259,18648)
Unknown column 'np.person' in 'where clause'