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 (37267,5410,22509,44853,17981,17556,44865,45515,44762,45177,44878,5388,18650,8753,14402,18719,44766,16935,44868,17527,44851,17114,18430,18446,44531,18301,17756,19057,17848,18427,45421,44848,44861,13,3883,39676,18353,18894,14622,44689,17237,44765,44866,18981,6862,13988,17492,18172,44863,44849,45229,17657,24438,45518,44739,30135,18996,44894,44884,9341,44745,17278,44870,17771,44867,3,45072,28530,17601,18185)
Unknown column 'np.person' in 'where clause'