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,45421,18652,19057,44687,44767,44861,17657,44848,45229,18042,45042,18981,17278,19078,6875,14622,45517,18353,17601,44837,13425,17527,24438,17009,44739,44866,44531,44775,44851,5388,18572,44685,17556,18430,6609,44855,17335,30963,37057,28313,45567,34194,45277,30135,4686,44640,4765,17756,18794,17703,17492,32454,24411,44845,44671,10402,45262,16935,17839,44870,17351,17835,17848,44835,43800,44711,45286,45518,44669)
Unknown column 'np.person' in 'where clause'