i learned meanwhile sql and now i did it and i said to just put the solution here anyway, maybe someone will need it. I'll just recap my problem:
I wanted to have in my site both posts as posts and posts as articles(which are something that should not appear to be categorized and posted on ... etc-so bare posts). These articles could be something like tutorials for example.
On my first page aka index i want the first thing to show to be the latest post. But there was a problem as i was ouside of the loop and wanted to search for thet post with a querry(the cleanest solution). Because i couldn't as seen from the history of the topic i relied on the loop, hoping that some next loop won't be scrued up which i don't know as it is yet the only loop on the index. But never know.
But today, after i learned some sql for an interview for a job :D i could do it and here it is...tada!! :D
SELECT a.post_title, a.ID, b.cat_name, b.cat_ID, a.post_date
FROM wp_posts a, wp_categories b, wp_post2cat c
WHERE b.cat_ID = c.category_id
AND a.ID = c.post_id
AND b.category_count >0
AND a.ID NOT
IN (
SELECT a.ID
FROM wp_posts a, wp_categories b, wp_post2cat c
WHERE a.ID = c.post_id
AND c.category_id = b.cat_ID
AND b.cat_ID =45
)
ORDER BY a.post_date DESC
LIMIT 0 , 30
Seems a little complicated i know but it was the only way i could do it. Enjoy.