Must need coffee or something :/ Cant figure this out.
I have a table with following info:
[B]
unique_id block_id column_id order_id user_id[/B]
1 block-1 column-2 0 1
32 block-2 column-3 0 7
7 block-1 column-1 0 2
8 block-2 column-2 0 2
10 block-6 column-2 1 1
11 block-7 column-3 1 1
I'm trying to find the highest block_id numer that the user_id 1 has.
Thought I could use something similar to this:
SELECT * FROM `blocks` WHERE unique_id=(select max(unique_id) from blocks) and user_id= 1
But it returns empty.
In this case I would want to get "block-7"
Hope anyone can help :/