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 (44745,28530,17335,45051,44858,31354,17756,44669,17527,44884,44856,44768,24438,18279,24411,44640,44671,44845,44531,45516,6875,13,22509,24441,45180,18237,44866,44689,44873,18648,44674,44870,45043,28313,17755,13922,17237,44878,18042,45567,8753,18652,44861,17009,24412,44765,18446,36472,18572,6609,18794,13425,13988,18172,18900,18650,3883,30135,44685,30986,16885,44767,44848,44836,9341,17351,44762,44869,45072,17278)
Unknown column 'np.person' in 'where clause'