How I could made a sql query who retrieve all the sticky post in a wordpress database? This is because we use a new app over the old wordpress website database, and I don't know where Wordpress "store" the sticky attribute.
Thanks in advance
It's not stored as attribute, but as list of all stickies. Snippet from core:
So look for the option and then use IDs to retrieve posts.