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 (18353,44775,45180,45277,44863,44835,45561,44856,24411,6875,13988,17556,5993,44868,8753,5410,24412,44767,4686,13,18650,17527,24441,24438,18688,18719,30963,45072,44867,14622,17657,44531,18648,44671,44858,44854,44768,17278,44745,44873,45346,3883,18900,44685,44762,45421,31354,17237,45262,10402,17756,6782,17703,44875,17981,5259,17492,44878,43800,44865,6862,16935,39676,44845,19078,45286,18981,44765,22509,18185)
Unknown column 'np.person' in 'where clause'