Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. SELECT node.nid AS nid,
  2. node.title AS node_title,
  3. node_revisions.body AS node_revisions_body,
  4. node_revisions.format AS node_revisions_format,
  5. files_node_data_field_pimage.filepath AS files_node_data_field_pimage_filepath,
  6. node_data_field_docs.field_docs_fid AS node_data_field_docs_field_docs_fid,
  7. node_data_field_docs.field_docs_list AS node_data_field_docs_field_docs_list,
  8. node_data_field_docs.field_docs_data AS node_data_field_docs_field_docs_data,
  9. node.type AS node_type,
  10. node.vid AS node_vid,
  11. node_data_field_pdf.field_pdf_fid AS node_data_field_pdf_field_pdf_fid,
  12. node_data_field_pdf.field_pdf_list AS node_data_field_pdf_field_pdf_list,
  13. node_data_field_pdf.field_pdf_data AS node_data_field_pdf_field_pdf_data,
  14. files_node_data_field_docs.filepath AS files_node_data_field_docs_filepath,
  15. DATE_FORMAT((FROM_UNIXTIME(node.created) + INTERVAL 3600 SECOND), '%Y%m%d%H') AS node_created_hour
  16. FROM z1_node node
  17. LEFT JOIN z1_content_field_pimage node_data_field_pimage ON node.vid = node_data_field_pimage.vid
  18. LEFT JOIN z1_files files_node_data_field_pimage ON node_data_field_pimage.field_pimage_fid = files_node_data_field_pimage.fid
  19. LEFT JOIN z1_content_type_pressrelease node_data_field_docs ON node.vid = node_data_field_docs.vid
  20. LEFT JOIN z1_files files_node_data_field_docs ON node_data_field_docs.field_docs_fid = files_node_data_field_docs.fid
  21. LEFT JOIN z1_content_type_pressrelease node_data_field_pdf ON node.vid = node_data_field_pdf.vid
  22. LEFT JOIN z1_files files_node_data_field_pdf ON node_data_field_pdf.field_pdf_fid = files_node_data_field_pdf.fid
  23. LEFT JOIN z1_node_revisions node_revisions ON node.vid = node_revisions.vid
  24. WHERE (node.status <> 0) AND (node.type in ('news')) AND (node.title = 'Vi har datorer!')
  25. ORDER BY node_created_hour DESC
Add Comment
Please, Sign In to add comment