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 (24438,5259,8753,6609,18648,30986,37057,6862,45286,17092,14402,18650,18427,44531,17278,17601,45518,44685,45561,44669,45072,17237,17009,18900,18172,14622,17657,28313,4765,44766,17703,44765,17839,45567,13988,44868,3,45229,24412,44855,18794,44674,44762,39676,18894,17335,34194,44687,10402,45346,17527,19078,18353,17492,43800,17556,44848,44884,45180,44856,18652,5993,44745,13,18688,44768,17835,44854,18237,17756)
Unknown column 'np.person' in 'where clause'