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 (18172,18894,45043,18572,18446,44853,18719,19057,44861,44858,24412,18900,22509,44868,16935,18353,45517,18688,3,17237,44854,44870,44856,44894,44766,17771,6875,44845,17492,18650,45229,18237,5993,45567,13,17703,4686,44745,37057,19078,6862,17556,45516,44689,44775,44884,18794,44767,44851,44674,43800,18279,30963,17839,44739,31354,44711,13425,17278,44865,18427,44669,9341,45561,5388,44875,44873,45286,5410,44764)
Unknown column 'np.person' in 'where clause'