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 (45180,18286,45517,45042,37267,17601,44855,44848,44762,5259,3883,13425,45421,44767,44837,24411,5388,24441,14402,45346,18648,18353,45286,18572,44687,45051,19057,18172,9341,44836,13,17237,18042,18688,17556,34194,30986,32454,17278,44865,44869,44531,6862,31354,17009,44835,44685,17335,18301,18446,45177,44849,17703,44768,44884,44745,6782,18996,8753,24412,30135,18185,45043,17835,17657,45561,17839,16935,18794,17114)
Unknown column 'np.person' in 'where clause'