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 (44767,22509,17839,19057,44878,18279,13988,18427,24438,17009,45051,37267,44861,45346,45515,5259,18900,6782,17835,45262,44855,44687,45042,45518,44674,17092,19078,44875,45072,14622,17755,18353,45567,17771,44671,9341,44867,16885,30963,44837,17601,18572,45561,8753,28530,45229,44851,30986,17492,17556,10402,44858,34194,44766,6862,17657,37057,14402,4765,36472,13,5388,3883,18996,44845,13922,44768,18172,44870,44836)
Unknown column 'np.person' in 'where clause'