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 (44762,44851,24411,18042,17755,44873,18719,18286,44837,44689,44768,45518,17771,18185,18301,18794,45072,8753,13425,4686,5388,44640,24412,44884,45567,44845,24441,17848,18894,45177,17601,44848,13988,3,44878,3883,17657,24438,18427,45042,17492,37057,44861,17237,44764,44669,14622,45421,44685,6875,13,44856,17527,16935,44739,18172,44865,18279,44767,10402,17756,17114,6782,44836,44835,18652,5993,17556,45180,44869)
Unknown column 'np.person' in 'where clause'