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 (5410,24441,17492,17092,44868,44894,44854,18042,44878,17848,44863,30986,45515,17278,44669,17755,14402,17904,17703,30963,17009,44861,45567,18172,18301,44685,17771,9341,44674,44837,24438,18650,28530,14622,24412,44867,18430,6609,18648,44845,44851,18286,45561,18446,45051,3,17237,45072,36472,22509,44836,6862,44711,18719,17601,13425,44764,18427,17756,19057,37057,44873,13988,45286,45277,16935,44640,44858,18279,45346)
Unknown column 'np.person' in 'where clause'