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 (44766,13988,44836,44765,44764,44851,44671,44768,44878,17657,45286,6862,45567,44868,6782,18572,44855,44845,18237,44884,24441,17981,14402,17335,18427,44775,17835,17601,45561,17527,37267,44875,18894,18996,44739,44865,34194,44866,17009,8753,44674,44837,17237,14622,44640,17114,18172,44762,17771,18900,44689,43800,44848,6609,18719,44849,19078,5259,44861,13922,44745,18446,18279,45262,44835,44870,18353,45177,31354,16885)
Unknown column 'np.person' in 'where clause'