varq="SELECT * FROM categories WHERE url='"+splitURL[1]+"'";
fetch(q).then(function(result_category)
if(splitURL.length>=1)
{
{
if(result_category.length!=0)
varq="SELECT posts.post_id, posts.pinned, posts.name, posts.url, posts.category_id, posts.published, posts.picture_url FROM categories INNER JOIN posts on categories.category_id=posts.category_id and categories.url='"+splitURL[1]+"' AND posts.url='"+splitURL[2]+"'";