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 (18237,6862,18996,45042,44856,18650,3883,13922,45180,31354,44767,17835,13425,43800,45567,44739,17114,17351,44858,44870,17278,44873,44669,44865,44689,44674,16935,18301,17009,44640,5410,16885,45051,13,18446,44775,17092,44711,4765,44894,44868,45177,44851,36472,45229,44762,6875,10402,18894,8753,3,18652,44853,34194,17657,19057,18427,30963,45043,45072,45561,17839,30135,17556,44531,44845,17703,24411,18794,19078)
Unknown column 'np.person' in 'where clause'