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 (45177,18446,44835,19078,17601,17527,18042,18286,36472,44762,45517,24438,30135,44845,9341,45180,31354,44768,45516,18301,18427,44764,17092,5410,6875,34194,44861,44531,19057,44739,13922,17839,17771,28530,44640,45042,28313,45229,6609,18688,18572,18185,18650,16935,45262,18719,44671,5259,3,18996,13425,39676,18652,24441,44765,44848,5388,45346,10402,17703,44884,44745,18430,44863,44873,13,24411,8753,3883,17835)
Unknown column 'np.person' in 'where clause'