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 (8753,44869,44836,45277,6875,17556,17601,44531,45286,44884,17092,45517,18572,24441,44767,18648,44861,44848,17839,18688,44868,45518,18719,5410,44687,30135,24411,6862,17771,18981,45346,24438,44685,17755,18894,18301,6609,17009,17278,5993,44854,44863,4686,5388,22509,9341,18279,31354,19057,17657,39676,44851,44858,44671,44674,18353,3,18996,18172,17237,44855,45229,17114,44870,18042,44669,13425,14622,44640,44766)
Unknown column 'np.person' in 'where clause'