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 (45262,30135,17848,18794,8753,44764,17492,17904,44739,18996,44669,44745,45072,18301,44685,44836,44845,43800,44858,5410,18237,18172,5388,18650,19057,17839,13425,45517,44865,3883,44766,17756,18900,17527,44878,16885,18719,44894,13988,44856,17237,44848,36472,45277,45515,44861,44767,24412,44855,44689,16935,18286,45042,17657,3,45286,6875,45561,44867,17771,24438,28530,44863,44866,18353,18688,18981,44765,44884,44835)
Unknown column 'np.person' in 'where clause'