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 (30963,18648,44775,45177,18996,34194,17009,17556,43800,45051,18794,31354,44765,18900,5388,22509,45517,13,44853,18185,44687,10402,45043,5259,45042,44671,16885,18894,4765,17335,44845,44863,44745,13425,17835,44762,36472,6782,39676,24411,17237,45072,17492,45516,24412,9341,24441,24438,18430,45346,44685,18301,3,45229,44836,18446,13922,45286,18719,44711,17904,18353,44767,30135,18650,44861,18688,45421,44835,17703)
Unknown column 'np.person' in 'where clause'