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 (44739,30135,45516,44861,43800,5410,4765,45051,19078,6609,30986,19057,6782,45042,18279,44768,18650,44858,17527,24412,44531,44853,44745,18981,44849,44689,6862,17092,44762,17556,45072,45515,45567,17657,3883,4686,44863,18301,10402,45262,18042,44865,45346,17237,45177,18996,17278,37057,45229,17904,44711,24438,44867,17848,45561,17839,45421,13,5993,18894,17756,18353,44854,18688,13922,5388,44687,44765,44640,18427)
Unknown column 'np.person' in 'where clause'